Why Nostr? What is Njump?
2024-09-06 23:00:10

mleku on Nostr: i just discovered a new thing that is newer than dgraph.io badger key/value store the ...

i just discovered a new thing that is newer than dgraph.io badger key/value store

https://github.com/egotist0/SLM-DB

the wisckey paper made a design change to log structured merge-tree database designs (like rocksdb and leveldb and all their related forks) by separating the key and value data structures, the reason being that updating the keys all the time when only the values were changing creates a feedback effect called "write amplification" and by splitting the tables, the iterations become faster and the compaction of the value log becomes cheaper

the feature list is pretty self explanatory why it might be a better option (and badger really is a lot better, but i feel like with age it's got crufty):

- Maintains an in-memory B+ tree to store record file IDs and offsets, enabling fast queries and range queries.- Supports sequential and append writes similar to LevelDB to ensure high performance for bulk data writes.- Implements a write-ahead log to ensure data durability.- Uses a multi-level memtable based on Skiplist to guarantee O(log N) query performance.- Implements a single-level SSTable and uses selective compaction to manage garbage collection.

i'm quite used to using badger now, and i understand enough about how it works to see that this might be substantially better, being that it is another, recently updated and ongoing maintained project

i'm just gonna see if i like the API anyhows, before i decide i'm not a badger maxi anymore
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku