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

Berkeley DB Reference Guide: Access Methods



D

Retrieving Btree records by number (DB_RECNUM)



8The Btree access method optionally supports retrieval byLlogical record number. To configure a Btreeodatabase for record numbers, set the DB_RECNUM flag in theDB_INFO structure.

BConfiguring a Btree for record numbers should not be done lightly.BWhile useful, it introduces a severe hot-spot in the database whenGstoring key/data items, and can severely impact application throughput.

jTo retrieve by record number, use the DB_SET_RECNO flag{to the DB->get and DBcursor->c_get interfaces.

HAKÿÿ