Berkeley DB supports a new SMP-optimized data model that is especially valuable for highly multithreaded applications. A sliced Berkeley DB instance contains a collection of related Berkeley DB environments known as slices, each containing a disjoint subset of records. Transactional consistency is maintained within an individual slice but not across multiple slices.
Database slices are enabled with a configuration option when building Berkeley DB and a simple addition to the DB_CONFIG file. Database slices are supported on UNIX/POSIX platforms.
DB_SLICED
— A new
flags
parameter value for the DB->open() method to indicate
that the database is sliced.
DB_VERB_SLICED
— A new
which
parameter value for the DB_ENV->set_verbose() method to
request verbose output for database slices.