Pagination for AWS S3 Bucket Objects #2922
EricPyZhou
started this conversation in
General
Replies: 0 comments
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.
-
Hello there, here is my question:
Suppose I have 100 objects and on the UI I have a pagination component that shows 10 objects each page.

To be able to jump to any page, currently in backend, I need to fetch all 100 objects and slice the needed range of array and return to UI. However, it results in extra cost of data tranfer and processing.
I thought of few ways, e.g. caching the whole list, but didnt figure out a way to efficiently let my backend be notified by new changes (can not get rid of possibilities of stale reads by just polling the API within some intervals).
Is there a way to just get a given index range of objects? is that possible solely relying on existing APIs?
Beta Was this translation helpful? Give feedback.
All reactions