-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Feature Request] Improve performance of sort by _id #13709
Comments
@dvjyothsna -- can you please clarify what the problem is that needs solving? From what I can see, we do support sorting, but we output this deprecation message:
The efficient way to support sorting on a field is to enable doc values on that field. I don't think we would ever enable doc values on the |
Is your feature request related to a problem? Please describe
We have a usecase where we rely on sort by _id to paginate and _id is the only field we can deterministically sort on. One of the workarounds is to copy the _id field into a doc value field. But it doesn't work for our usecase since ther user trying to paginate has readonly access. Another use case is where users can use custom ids and sort on the custom ids. Given the use cases, Is there a plan to optimize sort by _id?
Describe the solution you'd like
Optimize search performance for sort by _id
Related component
Search:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: