LevelDB Intro
LevelDB
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
Features
- key和value支持存储任意长度的字节数组
- 数据存储根据Key排序
- 支持自定义排序规则
- 基本操作是Put(Key,value), Get(Key), Delete(Key)
- 支持批量原子操作
- 支持创建事务快照获取一致性视图数据
- Forward and backward iteration is supported over the data.
- 自动使用Snappy算法压缩数据
Limitations
- Not SQL database
- Only a single process (possibly multi-threaded) can access a particular database at a time
- No client-server support builtin to the library