BundleDB - An embedded Databases to build nestable, scalable, complex structures on KV stores

agolangf · · 271 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p><a href="https://github.com/hansonkd/bundledb">https://github.com/hansonkd/bundledb</a></p> <p>Even though this isn&#39;t production ready, I decided to publish the first iteration of BundleDB in case it helps anyone. It allows developers to build collections (Sets, Maps, Lists/Queues) on top of traditional Key-Value Stores.</p> <p>You might find this project useful if you need an embedded DB or want to build a lightweight DBMS. </p> <p>It was inspired how Redis collections work (but very different)</p> <ul> <li>Collections remain embedded until a certain size.</li> <li>After reaching a limit, the collection will pop out of being embedded into its own shard in the KV store.</li> <li>A shard will split into smaller chunks if it gets too large.</li> </ul> <p>Collections can be nested.</p> <p>Its currently in pre-alpha as I haven&#39;t finished the product which will be using this. This initial release is focused on the API and structure. It is somewhat optimized but it hasn&#39;t been through the gauntlet of running in production.</p> <p>The default is using BadgerDB, but can be any KV store.</p> <hr/>**评论:**<br/><br/>mastabadtomm: <pre><p>I just wonder that how you handle garbage collection with BadgerDB. It seems problematic to me:</p> <ul> <li><a href="https://github.com/dgraph-io/badger/issues/464" rel="nofollow">https://github.com/dgraph-io/badger/issues/464</a></li> <li><a href="https://github.com/dgraph-io/badger/issues/444" rel="nofollow">https://github.com/dgraph-io/badger/issues/444</a></li> <li><a href="https://github.com/dgraph-io/badger/issues/354" rel="nofollow">https://github.com/dgraph-io/badger/issues/354</a></li> </ul> <p>I have used LevelDB in one of my personal projects instead of BadgerDB due to GC design. </p></pre>kyle-hanson: <pre><p>I built the KV access as an abstraction so the backend db can be changed by swapping the db interface instance. Badger is nice when prototyping, since very simple API. But, will probably end up building a plugin for leveldb.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

271 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传