Crate redis_rocksdb
source ·Structs§
- 这个对应redis中的hash, 字段数据量建议在2048个以内,在遍历数据时,性能比[ObjectImp]好 使用一个大的数组把key的值存下,以方便访问全部的field,与[ObjectImp]相比需要维护一个数组,当field数量不多时,性能比较好 所有的key以数组方式存入,有先后关系。如果删除其中的一个field其后的数据,会平移。
- 字段名使用 max binary head存放
- 字段名使用 min binary head存放
- 直接使用key + field的方式,把value的值存入数据库中 当获取所有field或值时需要使用 prefix_iterator,这时性能不如 crate::BitObject
Enums§
- Enum for the LEFT | RIGHT args used by some commands
Constants§
Traits§
- b+ tree(binary plus tree)
- see Trait for values that must be stored in little-endian byte order, but might be represented in memory as big-endian. Every type that implements EndianScalar is a valid FlatBuffers scalar value.
- 二叉堆(binary heap)
- 可以存储大量的数据,在遍历数据时,性能不如redis hash
- 可以存储大量的数据,在遍历数据时,性能不如redis hash
- key+index
- 是对db的抽象,减少在事务与不带事务时,重复的代码,如果想要更好的性能,那么可以不使用这层实现
Functions§
Type Aliases§
- 类型:表示成员或字段名字的长度bytes
- 类型:表示成员或字段的总个数