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

Feat/optimize csv parsing #24

Merged
merged 11 commits into from
Apr 18, 2024
Merged

Feat/optimize csv parsing #24

merged 11 commits into from
Apr 18, 2024

Conversation

sdewitt-newrelic
Copy link
Contributor

This PR contains many changes to optimize the download and processing of event logs. In particular, requests for CSVs containing event logs are nowstreamed and processed using a generator iterator. In addition, when loading the data into New Relic, logs/events are sent in chunks and gc.collect() is called after each chunk which will attempt to free up memory. gc.collect() is also run after flushing the cache.

@sdewitt-newrelic sdewitt-newrelic linked an issue Apr 18, 2024 that may be closed by this pull request
@sdewitt-newrelic sdewitt-newrelic added the enhancement New feature or request label Apr 18, 2024
@sdewitt-newrelic sdewitt-newrelic self-assigned this Apr 18, 2024
newrelic.ini Outdated Show resolved Hide resolved
@jbeveland27 jbeveland27 merged commit ac3ce1f into main Apr 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize Memory Usage and Performance
2 participants