LMDB vs MMKV
LMDB: Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026. MMKV: Tencent's mmap-backed key-value store for mobile apps, built as a faster SharedPreferences/NSUserDefaults.
key differences
- LMDB is built for larger datasets (≤ 10 TB) than MMKV (≤ 100 GB).
- Transactions: LMDB offers full ACID; MMKV offers none.
- Only LMDB has transactions.
- Only MMKV has ttl / expiry, encryption at rest.
choose lmdb for
- +Read-heavy embedded indexes and caches
- +Directory services (OpenLDAP back-mdb)
- +Blockchain and wallet state
- +ML dataset storage with fast random reads
best at · Embedded, Metadata, Local-first
choose mmkv for
- +Replacing SharedPreferences, NSUserDefaults or AsyncStorage
- +Feature flags and user settings
- +Small session and token caches on device
best at · Embedded, Coordination, Cache
LMDB vs MMKV: FAQ
What is the difference between LMDB and MMKV?
LMDB: Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026. MMKV: Tencent's mmap-backed key-value store for mobile apps, built as a faster SharedPreferences/NSUserDefaults. LMDB is built for larger datasets (≤ 10 TB) than MMKV (≤ 100 GB). Transactions: LMDB offers full ACID; MMKV offers none. Only LMDB has transactions.
When should I choose LMDB over MMKV?
Choose LMDB for read-heavy embedded indexes and caches; directory services (OpenLDAP back-mdb); and blockchain and wallet state. Choose MMKV for replacing SharedPreferences, NSUserDefaults or AsyncStorage; feature flags and user settings; and small session and token caches on device.
Is LMDB or MMKV more popular?
LMDB ranks #47 on the WhichDB Score (39.7/100) and MMKV ranks #364 (6.3/100). Popularity is not fit: check the requirements that matter for your project.
Are LMDB and MMKV open source?
Yes. LMDB is open source. License: OpenLDAP Public License 2.8. Yes. MMKV is open source. License: BSD 3-Clause License.