Skip to content

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

@alukach

Description

@alukach

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 💯)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions