LMDB
Tied for most recommended of 3 key-value stores
Fast, memory-mapped embedded database that people trust for reads and large datasets, and crash-safe with default settings. Critics say writes slow down as databases grow.
17 people recommended LMDB in Hacker News comments, 5 had mixed feelings and 12 criticized it, November 2025 to October 2026.
9 of the 17 people who recommend it commented in one thread, “Lightning Memory-Mapped Database Manager (LMDB) 1.0”.
Summary written by Claude from 36 comments. It was written before the November 2026 recount, and 35 of those comments still count.
34 people gave an opinion
- recommend it
- 17
- mixed feelings
- 5
- warn against or regret it
- 12
The record
Recommended in 9 of 12 months
In 12 different threads.
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: not recommended
- May 2026: recommended
- June 2026: not recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: not recommended
- October 2026: recommended
Why it doesn’t carry the badge
- 17 people recommend itNeeds 10 or more, met.
- 1.4 recommenders for every criticNeeds 2 to 1 or better, not met.
- Recommended in 9 of 12 monthsNeeds 4 or more, met.
- Recommended in 12 threadsNeeds 5 or more, met.
- 9 of its 17 recommenders came from one threadNeeds half or less, not met.
The same rules apply to every product, and the badge can’t be bought. Mixed feelings count toward neither side. How the badge works
What people say about it
Reasons grouped from a sample of 40 of the 50 opinions about it, picked in proportion to how many people recommend it, have mixed feelings and criticize it. Each mark is one comment in the sample. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Fast reads, memory-efficient
“Because it's so efficient, it can retain more useful data in-memory than other DBs for a given RAM size.”
Comment from 1 Dec 2025 in “Ask HN: Scheduling stateful nodes when MMAP makes memory accounting a lie” “if the object mapping fits in memory that should be pretty optimal for reading”
Comment from 3 Dec 2025 in “MinIO is now in maintenance-mode” “getting a 22x speedup by replacing SQLite's btree code with LMDB”
Comment from 7 Jan 2026 in “Databases in 2025: A Year in Review” - Comment from 2 Feb 2026 in “Efficient String Compression for Modern Database Systems”
Crash-safe by default
“By default, LMDB performs whatever necessary syncs and is 100% crash proof, even in the face of power outages.”
Comment from 23 Jul 2026 in “Garage S3: LMDB Corruption Post-Mortem” “As long as you stick to the safe LMDB options, which are the default options, it's reliable.”
Comment from 2 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “LMDB is already used by OpenLDAP [2][3] and seems pretty bullet-proof.”
Comment from 13 Feb 2026 in “MinIO repository is no longer maintained” Reliable in production
“I've used LMDB in production for multi-terabyte databases, and we encountered the long-write time but found a solution.”
Comment from 2 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “LMDB, boltdb/bbolt and sqlite (with mmap) are all rock solid.”
Comment from 6 Jan 2026 in “Databases in 2025: A Year in Review” “It's truly an incredible piece of tech.”
Comment from 9 Jan 2026 in “Databases in 2025: A Year in Review” Handles databases larger than RAM
“LMDB fully supports multiprocess concurrency as well as DBs multiple orders of magnitude larger than RAM”
Comment from 27 Nov 2025 in “Ask HN: Scheduling stateful nodes when MMAP makes memory accounting a lie”
What people warn about
Each mark is one comment
Slow writes on large databases
“once the db reached several hundred gb, writes would hang for longer and longer periods of time”
Comment from 2 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “It is really reliable except write performance in my experience.”
Comment from 2 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “lightning fast on reads but quite bad on writes”
Comment from 23 Jan 2026 in “EloqKV: Achieving Predictable P99.99 Latency on NVMe with Redis API” Unrecoverable after a crash
“but then the whole database can be unrecoverable in case of crash. It has happened to me.”
Comment from 3 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “a default database that isn't robust against power failure or crashes seems suprising to me”
Comment from 19 Dec 2025 in “Garage – An S3 object store so reliable you can run it outside datacenters” Hard to use from documentation
“I find this almost totally unusable. I often find myself reading the source instead.”
Comment from 14 Nov 2025 in “Rust in Android: move fast and fix things” “From this documentation I don't know how to use lmdb to make a correct program.”
Comment from 17 Nov 2025 in “Rust in Android: move fast and fix things” Unusable for many use cases
“I think lmdb is mostly unusable, for many use cases.”
Comment from 3 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0” “Don't use LMDB for anything that matters.”
Comment from 2 Jul 2026 in “Lightning Memory-Mapped Database Manager (LMDB) 1.0”
Other key-value stores people recommend
The two most recommended other key-value stores, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Mixed | Criticize | Approval | Months | Had for | Badge |
|---|---|---|---|---|---|---|---|
| LMDBThis page | 17 | 5 | 12 | 59% | 9 | — | — |
| RocksDB | 17 | 3 | 3 | 85% | 8 | — | Approved |
| Cloudflare KV | 8 | 0 | 12 | 40% | 7 | — | — |
What people said
40 of the 50 opinions about it, picked in proportion to the three counts, newest first. Each links to the original comment.
“By default, LMDB performs whatever necessary syncs and is 100% crash proof, even in the face of power outages.”
“Dropping the explicit P_DIRTY flag in 1.0 is a neat change.”
“Next step is go down one more level to ditch SQL and learn LMDB and/or RocksDB.”
“LMDB's hot paths fit entirely inside a CPU's L1 cache.”
“LMDB is fast despite being hobbled by vanilla kernel mmap.”
“an mmap() based page caching system will not do”
“no fine tuning is needed. The internal paths to every hot page automatically take priority”
“but then the whole database can be unrecoverable in case of crash. It has happened to me.”
“Being able to do it in parallel is necessary, especially when you have billions of entries to operate on.”
“The main issues were related to write speed but we do a compaction of the database”
“pointed out CVEs in LMDB attributed to his own bare hands”
“this latest (1.0) and the previous 0.9.x are mutually incompatible, requiring essentially a dump/restore”
“I think lmdb is mostly unusable, for many use cases.”
“That it keeps an infinite cache of malloc page allocations is annoying”
“I've used LMDB in production for multi-terabyte databases, and we encountered the long-write time but found a solution.”
“It has worked well for me as a way to read mutable (by any client) parameters during synthesis”
“LMDB does the work once and all users benefit.”
“Don't use LMDB for anything that matters.”
“we are getting inconsistent signals on how seriously they understand and implement security concerns”
“As long as you stick to the safe LMDB options, which are the default options, it's reliable.”
“once the db reached several hundred gb, writes would hang for longer and longer periods of time”
“It is really reliable except write performance in my experience.”
“iOS doesn't page dirty mmaped pages back to disk and after enough churn the app will OOM”
“It has been used successfully as the backend for OpenLDAP and Monero”
“pushing return values 4k above the stack, with a comment like”
“LMDB is already used by OpenLDAP [2][3] and seems pretty bullet-proof.”
“inspired by LMDB's blazing fast memory-mapped CoW approach”
“lightning fast on reads but quite bad on writes”
“It's truly an incredible piece of tech.”
“getting a 22x speedup by replacing SQLite's btree code with LMDB”
“Then OS will do a better job (as seen with LMDB etc”
“LMDB, boltdb/bbolt and sqlite (with mmap) are all rock solid.”
“lmdb is a bit further down the list”
“a default database that isn't robust against power failure or crashes seems suprising to me”
“if the object mapping fits in memory that should be pretty optimal for reading”
“Because it's so efficient, it can retain more useful data in-memory than other DBs for a given RAM size.”
“It will always be far more efficient than any other DB under the same conditions.”
“LMDB fully supports multiprocess concurrency as well as DBs multiple orders of magnitude larger than RAM”
“From this documentation I don't know how to use lmdb to make a correct program.”
“I find this almost totally unusable. I often find myself reading the source instead.”
Counts come from 1,791,911 Hacker News comments labeled by Claude, November 2025 to October 2026, with data through October 31, 2026. Counts updated 3 Nov 2026. How we count. Report a mistake.