Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add DescendGreaterOrEqual for the range [last, pivot], and also DescendRange with option (lt, gte] #115

Open
singchia opened this issue May 22, 2024 · 0 comments

Comments

@singchia
Copy link

singchia commented May 22, 2024

Can we have some more range operator options for iterating, like lt gte options in Descend and DescendRange.

In my case, I have a json field "create_time" with decimal value, I want to descend search range like [gte, lt), but it seems cannot be done, example:

db exists:

{"create_time": 10}
{"create_time": 11}
...
{"create_time": 1000001}
{"create_time": 1000002}
...
{"create_time": 2000001}

now I want descend search range [1000001, 2000001) and get last 10 values, I don't want use AscendGreaterOrEqual, because it'll skip too much, but if DescendGreaterOrEqual function exists, it'll be much efficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant