Elliot Chen

Results 16 issues of Elliot Chen

Please mark the questions which are raised when you read the source code. 当你阅读这个项目的源码时,遇到什么问题可以在这里留言,我看到了会回复你。

Hi, there. I am the maintainer of this project, and now, want to introduce more and more people to contribute to this project. So please tell me what can I...

help wanted

考虑加入描述文件描述DB的一些属性,目前能想到的是存储Db当前数据量,奔溃恢复的时候通过获取数据量可以预先分配一些资源。比如用hash做索引的时候读取全部数据构建索引的时候会反复扩容多次,如果提前知道数据量可以提前分配map资源,切片资源,操作数据的时候就可以避免一些无意义的扩容操作。

当前测试的时候生产db其实还是依赖于手写代码,这样其实不是很方便,可以考虑新建一个工具,实现命令式生成数据,类似 `nutsdb-tools create-db -dbsize 100000 -key-size 100 -value-size 500` 并且如果要做另一个提案,这个工具可以提供协议升级的功能。还有nutsdb-bench可以引用这个库,这里的功能也是nutsdb-bench需要的。

enhancement