6 ms·
Hey, this is effectively the same idea I'm going to implement! https://github.com/civboot/civboot/blob/main/blog/0012-dev-libraries-and-software.md#loam-keyval
by vitiral 3y ago
Hey, this is effectively the same idea I'm going to implement!
https://github.com/civboot/civboot/blob/main/blog/0012-dev-libraries-and-software.md#loam-keyvalue-store https://github.com/civboot/civboot/blob/main/blog/0012-dev-l...
Mine will be slightly more than key/value. My index file will support indexes of arbitrary record fields as well as the index of all items in loam, but it's effectively the same idea.
Note you could keep a live instance running to handle live writes, which uses an in-memory hash for recent writes and updates the hash index as-needed. Because the index can be rebuilt from the data there is no concern about data loss.