简体   繁体   中英

leveldb - numeric indexing and paging

我了解到,使用leveldb可以按键(开始,结束)进行范围查询,但是我想知道是否有任何聪明的方法可以像使用偏移和限制的sql查询一样执行数值范围的查询?

You need to use your key comparator instead of the default in leveldb. The you can construct a start key by given numeric offset.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM