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

Update the ExampleDataSource job to improve memory utilization #526

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

gsnider2195
Copy link
Contributor

@gsnider2195 gsnider2195 commented Aug 28, 2024

This changes the NautobotRemote adapter to use a generator to process large lists of data instead of building a large list and returning it.

This also updates the logging output to be more human-readable.

Before

image

After

image

Also confirmed with docker stats that the container memory utilization only increased by ~110MiB after running the job

@gsnider2195 gsnider2195 requested a review from a team as a code owner August 28, 2024 21:21
Copy link
Contributor

@jdrew82 jdrew82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gsnider2195 gsnider2195 merged commit ed26d51 into develop Aug 29, 2024
14 checks passed
@gsnider2195 gsnider2195 deleted the u/gas-memory-optimization branch August 29, 2024 03:47
@jdrew82 jdrew82 mentioned this pull request Sep 6, 2024
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