Berkeley DB Reference Guide: Introduction
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

### Berkeley DB Reference Guide: Introduction |

# Sleepycat Software Berkeley DB Products

Sleepycat Software licenses three different products that use the Berkeley DB technology. Each product offers a distinct level of database support. It is not possible to mix-and-match products, that is, each application or group of applications must use the same Berkeley DB product.

All three products are included in the single Open Source distribution of Berkeley DB from Sleepycat Software, and building that distribution automatically builds all three products. Each product adds services, and new interfaces, to the product that precedes it in the list. As a result, developers can download Berkeley DB and build an application that does only single-user, read-only database access, and later add support for more users and more complex database access patterns.

Users who distribute Berkeley DB must ensure that they are licensed for the Berkeley DB interfaces they use. Information on licensing is available directly from Sleepycat Software.

### Berkeley DB Data Store

The Berkeley DB Data Store product is an embeddable, high-performance data store. It supports multiple concurrent threads of control to read information managed by Berkeley DB. When updates are required, only a single process may be using the database. That process may be multi-threaded, but only one thread of control should be allowed to update the database at any time. The Berkeley DB Data Store does no locking, and so provides no guarantees of correct behavior if more than one thread of control is updating the database at a time.

The Berkeley DB Data Store product includes the db_create interface, the DB handle methods, and the methods returned by DB->cursor.

The Berkeley DB Data Store is intended for use in single-user or read-only applications that can guarantee that no more than one thread of control will ever update the database at any time.

### Berkeley DB Concurrent Data Store

The Berkeley DB Concurrent Data Store product adds multiple-reader, single writer capabilities to the Berkeley DB Data Store product, supporting applications that need concurrent updates and do not want to implement their own locking protocols. The additional interfaces included with the Berkeley DB Concurrent Data Store product are db_env_create, the DBENV->open method (using the DB_INIT_CDB flag), and the DBENV->close method.

Berkeley DB Concurrent Data Store is intended for applications that require occasional write access to a database that is largely used for reading.

### Berkeley DB Transactional Data Store

The Berkeley DB Transactional Data Store product adds full transactional support and recoverability to the Berkeley DB Data Store product. This product includes all of the interfaces in the Berkeley DB library.

Berkeley DB Transactional Data Store is intended for applications that require industrial-strength database services, including good performance under high-concurrency workloads with a mixture of readers and writers, the ability to commit or roll back multiple changes to the database at a single instant, and the guarantee that even in the event of a catastrophic system or hardware failure, any committed database changes will be preserved.

Copyright Sleepycat Software