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

Adding lock to reduce the memory pressure while synching #1110

Merged

Conversation

gameofpointers
Copy link
Contributor

@dominant-strategies/core-dev

Since downloader insert is an asynchronous process, writing thousands of
large blocks into the DB at the same time is very memory intensive.
Adding this lock will make sure that only one block is written at a time
and from the testing in the garden environment this has shown improved
performance in memory use while syncing
@gameofpointers gameofpointers merged commit 8d8c4d2 into dominant-strategies:main Sep 12, 2023
2 checks passed
@gameofpointers gameofpointers temporarily deployed to quai-sandbox September 12, 2023 21:00 — with GitHub Actions Inactive
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.

3 participants