Re:Badger: A fast key-value store written purely in Golang (...
by mutatio on Saturday November 10, 2018 @09:24AM
(#18421418)
2. I still believe the 16 bytes stands on x64 (8 byte aligned, thus 4 bytes padding).
Re:Badger: A fast key-value store written purely in Golang (...
by majidazimi on Saturday November 10, 2018 @09:57AM
(#18421527)
Then any other database written in pure Go would be sufficient to keep the index.
Re:Badger: A fast key-value store written purely in Golang (...
by tyingq on Saturday November 10, 2018 @10:00AM
(#18421540)
Sure. Searching a bit, they did benchmark against BoltDB, but didn't try what you're suggesting. The benchmark I found is also prior to them adding transactions to Badger.
Edit: Actually, the benchmarks turn off sync writes, which makes them silly to me. If you're okay with losing data, you probably wouldn't have chosen a disk based kv store. https://github.com/dgraph-io/badger-bench/blob/master/rw-ben...
The default install has sync writes turned on, so why benchmark it differently?
Re:Badger: A fast key-value store written purely in Golang (...
by mrjn on Saturday November 10, 2018 @01:33PM
(#18422704)
As mentioned in my top comment, we have run benchmarks again. SyncWrites on or off, Badger outperforms BoltDB. There's a nice ASCIIrema link that you can see, which is a recording of me running Ethereum 2.0 store benchmarks.
2. It appears to be 12 bytes. ID, length, offset, all as 4 byte uint32 values: https://github.com/dgraph-io/badger/blob/5242a997f5101ee00c4...