Skip to Content
Berkeley DB
book

Berkeley DB

by Sleepycat™ Software, Inc.
June 2001
Intermediate to advanced content levelIntermediate to advanced
688 pages
19h 18m
English
Sams
Content preview from Berkeley DB

Logical Record Numbers

The Berkeley DB Btree, Queue, and Recno access methods can operate on logical record numbers. Logical record numbers are 1-based, not 0-based; that is, the first record in the database is record number 1. In all cases for the Queue and Recno access methods (and when calling the Btree access method using the DB→get and DBcursor→c_get functions with the DB_SET_RECNO flag specified), the data field of the key must be a pointer to a memory location of type db_recno_t, as type-def ’d in the standard Berkeley DB include file. This type is a 32-bit unsigned type, which limits the number of logical records in a Queue or Recno database; and the maximum logical record, which may be directly retrieved from a Btree database, to 4,294,967,296. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Berkeley DB Book

The Berkeley DB Book

Himanshu Yadava
Linux Recipes for Oracle DBAs

Linux Recipes for Oracle DBAs

Darl Kuhn, Charles Kim, Bernard Lopuz
Fedora Linux

Fedora Linux

Chris Tyler

Publisher Resources

ISBN: 0735710643Purchase book