3 ms·
Bunt is a purely in-memory database, but it also persists to disk so that the database can be reopened. It's a lot like Redis in this manner. Basically, BuntDB
by tidwall 10y ago
Bunt is a purely in-memory database, but it also persists to disk so that the database can be reopened. It's a lot like Redis in this manner.
Basically, BuntDB requires that data be persisted prior to completing a transaction. There is no window of time where there is data in memory and not on disk. It's designed so that there is no way for data to exist in memory and not be on disk.
I decided that strings were a better way to go because 1) the string is the most common type in a key/value database, 2) strings take up less memory than a byte slice, and 3) strings are just bytes anyhow so they can always be converted using []byte(str).
Thanks for the kind words and I hope you give it a try.
- rakoo 10y agoSo, what about this paragraph at the end: https://github.com/tidwall/buntdb#durability-and-fsync https://github.com/tidwall/buntdb#durability-and-fsync In the default configuration there is a 1 second window where data is not fsynced to disk ?