-
Notifications
You must be signed in to change notification settings - Fork 214
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
[Merged by Bors] - Create separate connection to state DB for API #6386
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6386 +/- ##
=========================================
- Coverage 81.7% 81.7% -0.1%
=========================================
Files 315 315
Lines 35057 35077 +20
=========================================
+ Hits 28653 28664 +11
- Misses 4568 4574 +6
- Partials 1836 1839 +3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this safe to do? I know the API opens the DB readonly, but the node changes the data in the DB.
What happens if data is changed by the node while the API reads from the DB? Like inserting ATXs while API queries those ATXs?
If there's a long-running EDIT: I made this mistake again in this comment, sorry :) |
Co-authored-by: Matthias Fasching <[email protected]>
Updated my comment above b/c I made a mistake in it regarding db locking |
(but this doesn't block this PR, it's ok to merge) |
bors merge |
Pull request successfully merged into develop. Build succeeded: |
Description
This pull request introduces a separate SQL connection pool for the API interface. This change aims to isolate the API's database interactions from the main application pool to prevent exhausting all connections.
Closes #5583