Re:Badger: A fast key-value store written purely in Golang (...
by mrjn on Saturday November 10, 2018 @01:37PM
(#18422720)
You can keep both the value log and LSM tree in memory, exposed by badger.Options. That'd still give you persistence and crash-resilience while allowing your reads to benefit from direct memory access. If persistence is a non-goal, yeah, tmpfs would work.
If you use it as an in-memory DB, then I'd recommend using the LSM options, instead of Default options.
If you use it as an in-memory DB, then I'd recommend using the LSM options, instead of Default options.