配置文件:
leveldb: # in MB cache_size: 500 # in KB block_size: 256 # in MB write_buffer_size: 256 # in MB/s compaction_speed: 1000 # yes|no compression: yes
HASHMAP:
100万条,文本共约100MB,单条写用时约180s,多条合并写约30s,单条读约150s,数据库占用空间130MB
字符串拼接成K-V:
100万条拼接为约3万条,文本共约50MB,单条写约18s,多条合并写约1s,单条读约12s,数据库占用空间70MB