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: don't take up more memory than needed when calculating schema #12

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

mikix
Copy link
Contributor

@mikix mikix commented Jan 29, 2025

Previously, we expanded the iterator of rows we were handed and turned it into an in-memory list. (This didn't used to matter too much, since all known consumers were holding the rows in memory already.)

But this isn't actually necessary - we can just iterate through the rows once and calculate what we need. Which allows for "larger than memory" datasets as needed.

Previously, we expanded the iterator of rows we were handed and turned
it into an in-memory list.

This isn't actually necessary - we can just iterate through the rows
and calculate what we need.
Copy link

github-actions bot commented Jan 29, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
158 158 100% 100% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
cumulus_fhir_support/init.py 100% 🟢
cumulus_fhir_support/schemas.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 503c739 by action🐍

@mikix mikix merged commit ca7dc05 into main Feb 4, 2025
6 checks passed
@mikix mikix deleted the mikix/low-mem branch February 4, 2025 14:32
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