Re:Show HN: Badger – an embeddable, persistent key-value sto...
by mrjn on Monday June 26, 2017 @12:18AM
(#14634047)
It's not. The comparison is using the same APIs as provided by LevelDB/RocksDB. Not the transactional ones mentioned below.
TransactionDB* txn_db; Status s = TransactionDB::Open(options, path, &txn_db);
Transaction* txn = txn_db->BeginTransaction(write_options, txn_options); s = txn->Put(“key”, “value”); s = txn->Delete(“key2”); s = txn->Merge(“key3”, “value”); s = txn->Commit(); delete txn;
Then comparing it to Rocks DB is unfair (infact title of this post is misleading). Stuff like transactions and MVCC is way complicated than it sounds.