libmdbx 0.13.2.20 (2024-12-20T11:46:01+03:00)
One of the fastest compact embeddable key-value ACID storage engine without WAL.
 
Loading...
Searching...
No Matches
SYNC MODES

Detailed Description

Attention
Using any combination of MDBX_SAFE_NOSYNC, MDBX_NOMETASYNC and especially MDBX_UTTERLY_NOSYNC is always a deal to reduce durability for gain write performance. You must know exactly what you are doing and what risks you are taking!
Note
for LMDB users: MDBX_SAFE_NOSYNC is NOT similar to LMDB_NOSYNC, but MDBX_UTTERLY_NOSYNC is exactly match LMDB_NOSYNC. See details below.

THE SCENE:

TRADE-OFF: By skipping some stages described above, you can significantly benefit in speed, while partially or completely losing in the guarantee of data durability and/or consistency in the event of system or power failure. Moreover, if for any reason disk write order is not preserved, then at moment of a system crash, a meta-page with a pointer to the new B-tree may be written to disk, while the itself B-tree not yet. In that case, the database will be corrupted!

See also
MDBX_SYNC_DURABLE
MDBX_NOMETASYNC
MDBX_SAFE_NOSYNC
MDBX_UTTERLY_NOSYNC