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

Map times out when using too many points (with the sort parameter) #698

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

Map times out when using too many points (with the sort parameter) #698

tinok opened this issue Mar 30, 2021 · 1 comment

Comments

@tinok
Copy link
Member

tinok commented Mar 30, 2021

When loading a map for a project with 8000 submissions the server times out with a 504 response.

Investigating the API request showed that the issue does not happen when loading fewer submissions (e.g. 3000) or when removing the sort parameter.

Loads:
https://kf.kobotoolbox.org/api/v2/assets/ahNFUSAzWQ4fpuLEjaLzmT/data/?fields=["_id"]&format=json&limit=1&start=0

Does not load (504):

https://kf.kobotoolbox.org/api/v2/assets/ahNFUSAzWQ4fpuLEjaLzmT/data/?fields=["_id"]&format=json&limit=1&sort={"_id":-1}&start=0

Possibly related to #696.

@noliveleger
Copy link
Contributor

@tinok does it still happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants