Scroll like pagination #2872
-
Hi there, would it be possible to have something like Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
No, this is not possible. Instead you should provide the next point ID to search from so Qdrant can continue traversing the list of IDs. This is a limitation of Qdrant internals. Qdrant goes through all point IDs from beginning to end. Depending on what your data looks like there may be gaps. There is no index of some sort from For your convenience the API returns |
Beta Was this translation helpful? Give feedback.
-
I would like to go through my collection and run code using each point. What if it crashes halfway in 1million vectors? I'd like to store a "page number". is "next_page_offset" just a point id and always available if I saved it to hard disk, so I can recover from there, or is next_page_offset a temporary id stored by the database, if so, for how long? |
Beta Was this translation helpful? Give feedback.
No, this is not possible. Instead you should provide the next point ID to search from so Qdrant can continue traversing the list of IDs.
This is a limitation of Qdrant internals. Qdrant goes through all point IDs from beginning to end. Depending on what your data looks like there may be gaps. There is no index of some sort from
0..n
where every index points to a specific point.For your convenience the API returns
next_page_offset
which you can use as offset for the next request. Please see https://qdrant.tech/documentation/concepts/points/#scroll-points