Library Version 12.1.6.2

Database Slices
Prev | Chapter 9. Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2 | Next

## Database Slices

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.

### New Functions

- `DB_ENV->get_slice_count()`
- `DB_ENV->get_slices()`
- `DB->set_slice_callback()`
- `DB->get_slices()`
- `DB->slice_lookup()`

### New Error

- `DB_SLICE_CORRUPT`

### New Parameter Values

- `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.

Prev | Up | Next
Chapter 9. Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2 | Home | Renaming the BLOB file feature to External Files