Does Cozo support pagination? Keyset pagination? #209
Answered
by
andrewbaxter
andrewbaxter
asked this question in
Q&A
-
AFAICT looking through the rust docs it returns the whole query set. I imagine you could implement something similar yourself, but you'd need to use a new query to do so (possibly multiple queries depending on where you left off). |
Beta Was this translation helpful? Give feedback.
Answered by
andrewbaxter
Feb 8, 2024
Replies: 1 comment 2 replies
-
@andrewbaxter you can use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh thanks, yeah! I actually just saw that the other day.
I was specifically interested in keyset pagination to avoid missed/duplicate results when fetching large sets of data while the data is changing.
There is result ordering too though. So I guess you could probably order it then grab the key from the last entry and make the next query with
> key
? I assume it fetches the whole result set on the server before doing that, but at least maybe not all of it would go over the wire.