key-value數據庫 tstdb

openkk 13年前發布 | 14K 次閱讀 memcached NoSQL數據庫 NOSQL

tstdb是一種基于日志重放機制的memcached兼容的key-value數據庫,可用于需要緩存數據落地的一些場合。
它兼容memcached的客戶端(支持get,set和delete命令),支持value過期設置。讀寫性能與memcached接近。日志重放速度很快,作者測試時一億數據的reloading(key:10bytes ,value: 20 bytes)只需要2分鐘,內存占用2.1G。

項目主頁:http://www.baiduhome.net/lib/view/home/1322727404765

Introduction

1. keys are loaded into memory, and are organized as a ternary search tree

2. big values are stored on disk-based log; no disk IO for reading small values, which are less than 8 bytes

3. log file and hint file are used to reload data when restarting db server

4. very fast! both the qps and data reloading speed.

5. a memcached compatible server.

key-value數據庫 tstdb

TODO LIST:

supporting prefix searching.

Have a look

http://code.google.com/p/tstdb/source/browse/

Download

tstdb_0.2.tar.gz

Install

epoll is needed!

tar -xzf tstdb_0.2.tar.gz
cd tstdb
make

run the server</span>: ./tstserver

show help</span>./tstserver -h</pre>

Performance

the performance is comparable to memcached.

you cat test it by yourself. benchmark

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!