`

nessDB的Memory-Table 是个好东东

 
阅读更多

nessDB结构介绍

主要包括:Memory-Table,Sorted-Table(*.sst)、Meta和Log四大部分。

1. Memory-Table 是个有序内存表,使用Skiplist实现。

所有的添加/删除首先会写到这个内存表,当这个内存表达到一定数量后,进入immutable只读状态,后台线程开始对其进行merge操作。同时会新建一个内存表,继续接受添加/删除操作。

Memory-Table数据结构如下:

key value-offset operation
  • ‘key’:key数据
  • ‘value-offset’:value在DB文件里的偏移地址
  • ‘operation’:标识,是添加还是删除操作

由于不存储value,可以对更多的数据进行缓存和排序,对随机写更友好(这点与levelDB不同)。

nessDB同时最多有2个Memory-Table,一个处于可读写的active状态,另一个处于只读的immutable状态。

分享到:
评论

相关推荐

    api-ms-win-core-memory-l1-1-0.dll

    api-ms-win-core-memory-l1-1-0.dll

    lucene-memory-6.6.0-API文档-中文版.zip

    赠送jar包:lucene-memory-6.6.0.jar; 赠送原API文档:lucene-memory-6.6.0-javadoc.jar; 赠送源代码:lucene-memory-6.6.0-sources.jar; 赠送Maven依赖信息文件:lucene-memory-6.6.0.pom; 包含翻译后的API文档...

    arrow-memory-0.8.0-API文档-中英对照版.zip

    赠送jar包:arrow-memory-0.8.0.jar; 赠送原API文档:arrow-memory-0.8.0-javadoc.jar; 赠送源代码:arrow-memory-0.8.0-sources.jar; 赠送Maven依赖信息文件:arrow-memory-0.8.0.pom; 包含翻译后的API文档:...

    lucene-memory-3.0.2.jar

    lucene-memory-3.0.2.jar,lucene高亮显示中不可少的jar包lucene-memory-*.jar

    long-short-term-memory-networks-with python

    Long Short-Term Memory Networks With Python Develop Sequence Prediction Models With Deep Learning Jason Brownlee

    node-memory-leak-tutorial, 在节点中,调试内存泄漏的教程.zip

    node-memory-leak-tutorial, 在节点中,调试内存泄漏的教程 调试 node.js 中的内存泄漏这是在 node.js. 中调试内存泄漏的快速教程步骤 1: 安装调试工具首先,你需要安装 v8-profiler 模块。 如果不需要在应用程序中...

    DrMemory-Windows-2.2.0-1.zip

    DrMemory-Windows-2.2.0-1

    lucene-memory-3.0.1.jar

    lucene-memory-3.0.1.jar

    arrow-memory-core-6.0.1-API文档-中文版.zip

    赠送jar包:arrow-memory-core-6.0.1.jar; 赠送原API文档:arrow-memory-core-6.0.1-javadoc.jar; 赠送源代码:arrow-memory-core-6.0.1-sources.jar; 赠送Maven依赖信息文件:arrow-memory-core-6.0.1.pom; ...

    lucene-memory-3.3.0.jar

    lucene-memory-3.3.0.jar 包下载

    arrow-memory-core-6.0.1-API文档-中英对照版.zip

    赠送jar包:arrow-memory-core-6.0.1.jar; 赠送原API文档:arrow-memory-core-6.0.1-javadoc.jar; 赠送源代码:arrow-memory-core-6.0.1-sources.jar; 赠送Maven依赖信息文件:arrow-memory-core-6.0.1.pom; ...

    lucene-memory-7.7.0-API文档-中文版.zip

    赠送jar包:lucene-memory-7.7.0.jar; 赠送原API文档:lucene-memory-7.7.0-javadoc.jar; 赠送源代码:lucene-memory-7.7.0-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.7.0.pom; 包含翻译后的API文档...

    lucene-memory-7.2.1-API文档-中文版.zip

    赠送jar包:lucene-memory-7.2.1.jar; 赠送原API文档:lucene-memory-7.2.1-javadoc.jar; 赠送源代码:lucene-memory-7.2.1-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.2.1.pom; 包含翻译后的API文档...

    lucene-memory-7.3.1-API文档-中文版.zip

    赠送jar包:lucene-memory-7.3.1.jar; 赠送原API文档:lucene-memory-7.3.1-javadoc.jar; 赠送源代码:lucene-memory-7.3.1-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.3.1.pom; 包含翻译后的API文档...

    arrow-memory-0.10.0-API文档-中文版.zip

    赠送jar包:arrow-memory-0.10.0.jar; 赠送原API文档:arrow-memory-0.10.0-javadoc.jar; 赠送源代码:arrow-memory-0.10.0-sources.jar; 赠送Maven依赖信息文件:arrow-memory-0.10.0.pom; 包含翻译后的API文档...

    arrow-memory-0.8.0-API文档-中文版.zip

    赠送jar包:arrow-memory-0.8.0.jar; 赠送原API文档:arrow-memory-0.8.0-javadoc.jar; 赠送源代码:arrow-memory-0.8.0-sources.jar; 赠送Maven依赖信息文件:arrow-memory-0.8.0.pom; 包含翻译后的API文档:...

    lucene-memory-7.7.0-API文档-中英对照版.zip

    赠送jar包:lucene-memory-7.7.0.jar; 赠送原API文档:lucene-memory-7.7.0-javadoc.jar; 赠送源代码:lucene-memory-7.7.0-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.7.0.pom; 包含翻译后的API文档...

    lucene-memory-7.2.1-API文档-中英对照版.zip

    赠送jar包:lucene-memory-7.2.1.jar; 赠送原API文档:lucene-memory-7.2.1-javadoc.jar; 赠送源代码:lucene-memory-7.2.1-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.2.1.pom; 包含翻译后的API文档...

    arrow-memory-0.10.0-API文档-中英对照版.zip

    赠送jar包:arrow-memory-0.10.0.jar; 赠送原API文档:arrow-memory-0.10.0-javadoc.jar; 赠送源代码:arrow-memory-0.10.0-sources.jar; 赠送Maven依赖信息文件:arrow-memory-0.10.0.pom; 包含翻译后的API文档...

    lucene-memory-7.3.1-API文档-中英对照版.zip

    赠送jar包:lucene-memory-7.3.1.jar; 赠送原API文档:lucene-memory-7.3.1-javadoc.jar; 赠送源代码:lucene-memory-7.3.1-sources.jar; 赠送Maven依赖信息文件:lucene-memory-7.3.1.pom; 包含翻译后的API文档...

Global site tag (gtag.js) - Google Analytics