+I:Berkeley DB Reference Guide: Access Methods[P4

Berkeley DB Reference Guide: Access Methods



)

Database statistics



cThe DB->stat function is the standard function for obtainingBdatabase statistics. Generally, the stat function returns a set ofFstatistics about the underlying database, e.g., the number of key/dataIpairs in the database, how the database was originally configured, and soIon. In most cases, this information is specific to the access method forGwhich it was created, e.g., only Btree databases will return the number*of levels in the underlying database tree.

HThere is one flag that you can set to customize the returned statistics:

r

DB_RECORDCOUNT
If the database is a Recno database


FAGÿÿ