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

Use single threaded coroutine context for database transactions #282

Merged
merged 3 commits into from
Oct 13, 2024

Conversation

DrexHD
Copy link
Contributor

@DrexHD DrexHD commented Jul 8, 2024

Fixes some concurrency issues (eg. Rollbacks failing to write to the database during high load) by using a single thread thread pool.
SQLite won't benefit from using multiple connections from the same process anyways. Other databases might(?) benefit in some cases, but likely not a lot, because Ledger is all about writing to pretty much one table.

Fixes some concurrency issues (eg. Rollbacks failing to write to the
database during high load)
PotatoPresident and others added 2 commits August 15, 2024 15:44
Use default dispatcher for non-io concurrency
Don't try to drain empty queue
@AzimovUA
Copy link

When merge? Very needed change.

@DrexHD DrexHD merged commit cbdc883 into QuiltServerTools:master Oct 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants