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

Try to reduce number of queries #74

Open
dkarchmer opened this issue Nov 22, 2017 · 0 comments
Open

Try to reduce number of queries #74

dkarchmer opened this issue Nov 22, 2017 · 0 comments
Assignees

Comments

@dkarchmer
Copy link
Contributor

Right now, we always first make a query to get a page_size=2 which is intended just to give us a total count, so we can compute how many pages we will need.
Few possible optimizations:

  1. Always get the first page anyway, and then if needed, fork the rest of the pages
  2. If lastn is passed, and it is less than say, 2000, just make a single call with page_size=2000
  3. Add server API to get count (to make db query to only get count, which is faster)
@dkarchmer dkarchmer self-assigned this Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant