Live data from Hacker News

LMDB – Lightning Memory-Mapped Database Manager

lmdb.tech

21–23 of 23 posts

Re: LMDB – Lightning Memory-Mapped Database Manager

#21
post #11

LMDB is a very good choice for many well-known reasons. I don't need to expand here, the advantages are well documented, and more and more projects are choosing LMDB. However LMDB does not solve all problems, and can be a bad choice for some, and I couldn't find this documented anywhere. Specifically write-intensive workload. Why? - LMDB by default provides full ACID semantics, which means that after every key-value…

> But a little known fact is that you lose all of ACID, meaning that a system crash can cause total loss of the database. Only use `MDB_NOSYNC` if your data is expendable.

Last I looked into LMDB, this was only the case if the filesystem doesn't respect write ordering, which depends on the filesystem. Otherwise you get everything but durability (i.e. ACI) If I recall, writes are ordered by default on Ext3.

Re: LMDB – Lightning Memory-Mapped Database Manager

#22
post #11

LMDB is a very good choice for many well-known reasons. I don't need to expand here, the advantages are well documented, and more and more projects are choosing LMDB. However LMDB does not solve all problems, and can be a bad choice for some, and I couldn't find this documented anywhere. Specifically write-intensive workload. Why? - LMDB by default provides full ACID semantics, which means that after every key-value…

This is exactly our experience. Using the default settings, RocksDB massively outperform LMDB on single-key write workload, because it writes asynchronously.

Re: LMDB – Lightning Memory-Mapped Database Manager

#23

I like LMDB, but why does ~most sql/nosql use LSM/rocksdb compared to it ? At least the ones going for read-speed ? Cause of missing WAL ? There is also a fork? who claims is better/more-features than LMDB: https://github.com/leo-yuriev/libmdbx

All improvements over LMDB are listed here = https://github.com/leo-yuriev/libmdbx#improvements-over-lmdb
Post reply on HN