Skip to content
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

"Smart"/dynamic default page size-ing? #1906

Open
yarikoptic opened this issue Mar 25, 2024 · 0 comments
Open

"Smart"/dynamic default page size-ing? #1906

yarikoptic opened this issue Mar 25, 2024 · 0 comments
Labels
performance Improve performance of an existing feature

Comments

@yarikoptic
Copy link
Member

yarikoptic commented Mar 25, 2024

Make paging smarter. Might be a little non-trivial to implement on django side (although didn't research -- might have been already done etc), but I think we might benefit from having first pages to be small (e.g. default 100) but then if request is going through subsequent pages -- make them as large as we can afford (or just 1000).
This way overall we can decrease desired number of requests for e.g. listing /assets in a dandiset 10-fold while consuming the same bandwidth (well -- actually even save that a little but not significantly).

For client code I believe it should not matter how many are actually returned in the response if no explicit page_size was requested.

ref:

@yarikoptic yarikoptic added the performance Improve performance of an existing feature label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improve performance of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant