jmgunn87
jmgunn87

Reputation: 165

leveldb - numeric indexing and paging

I understand that with leveldb you can do ranged queries by key(start, end) but I am wondering if there are any clever ways that one can do a numerically ranged query as you can do with an sql query such using offset and limit?

Upvotes: 1

Views: 551

Answers (1)

yinqiwen
yinqiwen

Reputation: 659

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

Upvotes: 0

Related Questions