title: Tokyo Cabinet Tuning Parameters
body: <p>I have been trying to find a better Tokyo Cabinet (or Tokyo Tyrant) configuration for my application, but I don't know exactly how. I know what some parameters mean but I want to have a fine tuning control, so I need to know the impact of each one. The Tokyo documentation is really good but not at this point.  </p>
  
  <ul>
  <li><code>TCHDB -&gt; *bool tchdbtune(TCHDB *hdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*</code></li>
  </ul>
  
  <p>How do I use: <code>bnum</code>, <code>apow</code> and <code>fpow</code>?</p>
  
  <ul>
  <li><code>TCBDB -&gt; *bool tcbdbtune(TCBDB *bdb, int32_t lmemb, int32_t nmemb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*</code></li>
  </ul>
  
  <p>How do I use: <code>lmemb</code>, <code>nmemb</code>, <code>bnum</code>, <code>apow</code> and <code>fpow</code>?</p>
  
  <ul>
  <li><code>TCFDB -&gt; *bool tcfdbtune(TCFDB *fdb, int32_t width, int64_t limsiz);*</code></li>
  </ul>
  
  <p>How do I use: <code>width</code> and <code>limsiz</code>? Note: I am only putting this to get all types of database in the topic, this one is really simple.</p>
  
  <ul>
  <li><code>TCTDB -&gt; *bool tctdbtune(TCTDB *tdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*</code></li>
  </ul>
  
  <p>How do I use: <code>bnum</code>, <code>apow</code> and <code>fpow</code>?</p>