Berkeley DB Reference Guide: Access Methods

Berkeley DB Reference Guide: Access Methods

Hash table size (h_nelem)

The anticipated number of elements in the hash table can be specified as part of the db_open call to open the database, specifically by setting the h_nelem element of the DB_INFO structure. If not specified, or set too low, hash tables will expand gracefully as keys are entered, although a slight performance degradation may be noticed.