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

Unable to export spatial data from project with large questionnaire #1971

Open
alukach opened this issue Feb 6, 2018 · 0 comments
Open

Unable to export spatial data from project with large questionnaire #1971

alukach opened this issue Feb 6, 2018 · 0 comments

Comments

@alukach
Copy link
Contributor

alukach commented Feb 6, 2018

When attempting to export a project from the production site, the spatial API times out. This project has a large questionnaire, resulting in ~250 elements being returned in a spatial unit's attributes object. Requesting 50 elements takes the API around 25 seconds to return. By default, the API returns 100 elements. I believe our server is set to timeout after 30 seconds.

Endpoint in question: https://platform.cadasta.org/api/v1/organizations/dinas-perkebunan-kabupeten-musi-banyuasin/projects/pendataan-dan-pemetaan-petani-swadaya-kelapa-sawit/spatial/?limit=50&format=json

Potential fix ideas include:

  • Instructing the export-service to make smaller API request (quick and dirty)
  • Identifying and removing performance barriers to the API (better performance for us moving forward 💯)
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

1 participant