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

Fix external choices form uploads #2300

Merged
merged 3 commits into from
Aug 22, 2022
Merged

Conversation

KipSigei
Copy link
Contributor

@KipSigei KipSigei commented Aug 19, 2022

Changes / Features implemented

  • Improve performance by using iter_rows when iterating through openpyxl workbook rows

Steps taken to verify this change does what is intended

  • Added tests to load xform with > 5k external choice rows

Peformance benchmark tests

  • Before refactor, the elapsed time when looping through 200 rows is 23.538966832 seconds, after the refactor the elapsed time for 200 rows is 0.897349707 seconds

Side effects of implementing this change

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

  • Included tests
  • Updated documentation

Closes #

Signed-off-by: Kipchirchir Sigei <[email protected]>
Signed-off-by: Kipchirchir Sigei <[email protected]>
@KipSigei KipSigei requested a review from ukanga August 19, 2022 12:15
Signed-off-by: Kipchirchir Sigei <[email protected]>
@KipSigei KipSigei merged commit 95e9ae4 into main Aug 22, 2022
@KipSigei KipSigei deleted the fix-external-choices-form-uploads branch August 22, 2022 09:10
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.

2 participants