Lightning Memory-Mapped Database Manager (LMDB) 1.0
- Databases
- Infrastructure
- Developer Tools
- Open Source
LMDB 1.0 is a new major release of the embedded memory-mapped database best known for a tiny codebase, fast reads, and a design that leans heavily on the operating system page cache instead of maintaining its own large buffer manager. The release adds incremental backup, page-level checksums and encryption, raw block device support, two-phase commit, and support for page sizes up to 64 KB. A side note in the docs also sparked confusion because LMDB can map the database read-only or read-write, while still using safer syscall-based writes by default. The optional writable mapping is the faster but riskier mode because stray pointer writes can corrupt the file.
If you are considering LMDB, treat it as a specialized choice for read-heavy workloads with simple operational needs, not a drop-in general database. Benchmark with production-sized data, long runtimes, and your target OS memory behavior before committing to it.
- lmdb.tech
- Discuss on HN