highPerformance property
LMDBFlagSet
get
highPerformance
Creates a flag set optimized for high performance operations.
WARNING: This flag combination prioritizes performance over durability. It provides ACI (Atomicity, Consistency, Isolation) guarantees but NOT Durability. This means that the most recent transactions might be lost in case of a system crash.
The combination includes:
- MDB_WRITEMAP: Use writeable memory map
- MDB_MAPASYNC: Flush asynchronously
- MDB_NOSYNC: Don't flush system buffers
IMPORTANT: Thoroughly understand the implications and read the LMDB documentation before using this in production environments.
Implementation
static LMDBFlagSet get highPerformance => LMDBFlagSet()
..add(MDB_WRITEMAP)
..add(MDB_MAPASYNC)
..add(MDB_NOSYNC);