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

CSV export optimisation #2755

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from
Draft

CSV export optimisation #2755

wants to merge 43 commits into from

Conversation

kelvin-muchiri
Copy link
Contributor

@kelvin-muchiri kelvin-muchiri commented Jan 7, 2025

Changes / Features implemented

Optimise CSV export process. Avoid traversing data to build CSV columns for repeat responses. Instead use a register that has a record of how many columns we should have for each repeat question.

If the register for a form is unavailable, fall back to building the columns from data and trigger an asynchronous task to create the register

Fixed flaky test onadata.apps.api.tests.viewsets.test_organization_profile_viewset.TestOrganizationProfileViewSet.test_add_members_to_owner_role

Steps taken to verify this change does what is intended

  • QA

Side effects of implementing this change

Faster CSV exports and loading of linked datasets

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

Closes #2695

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

Successfully merging this pull request may close these issues.

Optimize CSV export by improving how CSV headers are created.
1 participant