Fetch all search results page by page in a performant way / auto-increment ID? #797
underflow00
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment
-
Hey @underflow00,
No! Using the offset, even without a filter, should be very performant; you shouldn't have to do any trick. Did you notice any performance issues? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need a way to fetch all search results page by page in a performant way.
My understanding is that using
offset
is not performant as it requires fetching and processing the skipped documents. Is that correct?I've thought of adding a unique filterable number attribute and using that as a cursor for pagination (
filter = "id > {lastId}"
). Is that a good idea? Is there an easier way, given that there is no built-in auto-increment ID (old proposal here) and I would have to maintain this ID in a separate database?Beta Was this translation helpful? Give feedback.
All reactions