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

Page loading is slow #82

Open
dylanmcreynolds opened this issue Mar 30, 2021 · 1 comment
Open

Page loading is slow #82

dylanmcreynolds opened this issue Mar 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dylanmcreynolds
Copy link
Collaborator

On a smokin' fast server, this GET takes 7 seconds: https://splash-staging.lbl.gov/api/v1/pages?page=1&page_size=5 to return only four pages.

This request is getting the full content of each page. Even then it should be a lot faster.

Some thoughts:

  • Are we searching on an unindexed field?
  • Looks like we need a new query (new endpoint?) that can let the client request fields they want returned so that we don't need to get the whole content of every page.
@dylanmcreynolds dylanmcreynolds added the enhancement New feature or request label Mar 30, 2021
@dylanmcreynolds
Copy link
Collaborator Author

Huh...something bad was happening on the mongo server...after a restart, the method took 21ms. I still want to address the two points though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants