Writing a key-value store

前端 未结 7 1133
梦谈多话
梦谈多话 2021-02-04 08:12

I am looking to write a Key/value store (probably in python) mostly just for experience, and because it\'s something I think that is a very useful product. I have a couple of qu

7条回答
  •  鱼传尺愫
    2021-02-04 08:52

    First up, I know this question quite old.

    I'm the creator of aodbm ( http://sf.net/projects/aodbm/ ), which is a key-value store library. aodbm uses immutable B+Trees to store your data. So whenever a modification is made a new tree is appended to the end of the file. This probably sounds like a horrendous waste of space, but seeing as the vast majority of nodes from the previous tree are referenced, the overhead is actually quite low. Very little of an entire tree is kept in memory at any given time (at most O(log n)).

提交回复
热议问题