# LMDB

> Lightning Memory-Mapped Database: a tiny, crash-proof embedded key-value store

Source: https://talira.ai/catalog/lmdb-mmsatwjv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Database
- Categories: [databases / embedded](https://talira.ai/categories/databases/embedded)
- Licence: OLDAP-2.8[^3]
- Pricing: Free and open source[^2][^3]
- Pricing notes: Free under the OpenLDAP Public License. Symas sells fixed-price Gold and Enterprise source-level support.
- Free tier: yes[^2][^3]
- Backed by: [Symas](https://talira.ai/orgs/symas.md)

LMDB (Lightning Memory-Mapped Database) is an embedded, transactional key-value store written in C by Symas for the OpenLDAP Project. It maps the database file into memory, so reads are zero-copy and run at in-memory speed while the data stays on disk, and it gives full ACID transactions with MVCC: readers never block writers, writers never block readers, and several processes can share one environment. Keys are kept sorted for range lookups, an environment holds multiple sub-databases, and it needs no logs, compaction or crash recovery. The library is about 32 KB of object code.

## Links

- Website: https://www.symas.com/mdb
- GitHub: https://github.com/LMDB/lmdb

## Ways to install

### Package managers

- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/lmdb>[^1]

## Problems it solves

- an embedded key-value store that can't corrupt its data when the process crashes
- read from a local database as fast as memory without writing my own cache
- share one on-disk database between several processes on the same machine

## Features

- memory-mapped files for zero-copy reads
- ACID transactions with MVCC; readers and writers never block each other
- sorted keys for range lookups
- multiple sub-databases in one environment
- no logs, compaction or crash recovery to manage
- about 32 KB of object code

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.48, adoption 0.70, momentum 0.41, community 0.65, backing 0.30, extensibility 0.00.

- last commit 40 days ago
- 5 commits in the last 90 days
- 3.1k GitHub stars
- 42 contributors
- backed by Symas

## Alternatives

- [sled](https://talira.ai/catalog/sled-2yqmkzh2.md): Pure-Rust embedded key-value database with a BTreeMap-like API and ACID transactions
- [LevelDB](https://talira.ai/catalog/leveldb-z4h1pevv.md): Fast embedded key-value storage library from Google with ordered keys
- [RocksDB](https://talira.ai/catalog/rocksdb-2613tyv8.md): Embeddable persistent key-value store for fast storage
- [bbolt](https://talira.ai/catalog/bbolt-jd8aba9j.md): An embedded key/value database for Go
- [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md): Small. Fast. Reliable. Choose any three.
- [Badger](https://talira.ai/catalog/badger-jjgdn1k6.md): Embeddable, persistent key-value database in pure Go

## Sources

[^1]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 27 Nov 2026)
[^2]: https://www.symas.com/mdb (checked 27 Nov 2026)
[^3]: https://github.com/LMDB/lmdb/blob/mdb.master/libraries/liblmdb/LICENSE (checked 27 Nov 2026)
