![]() |
MDBX Containers
|
This page describes each option of the mdbxc::Config class and how it affects the resulting MDBX environment. These settings are passed to mdbxc::Connection when opening the database and translate directly to MDBX API calls or flags.
relative_to_exe is true and the path is relative, it is resolved against the directory of the running executable.MDBX_RDONLY so the environment is opened in read-only mode.MDBX_NORDAHEAD, disabling OS readahead and potentially improving random I/O performance.MDBX_NOSUBDIR so the data and lock files are stored next to each other rather than inside a directory.MDBX_SYNC_DURABLE forcing an fsync after each commit for maximum durability at the cost of latency.MDBX_WRITEMAP to map pages writable. This can speed up modifications but may increase virtual memory usage and requires reliable syncing.pathname.Tune these options to balance performance and durability. Combining writemap_mode with sync_durable mimics MDBX's default safe mode, while disabling sync_durable trades safety for throughput. For more guidance see the official MDBX documentation: https://libmdbx.dqdkfa.ru/.