-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Reduce DB connection locking in storage #4984
🐛 Reduce DB connection locking in storage #4984
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4984 +/- ##
=========================================
- Coverage 85.4% 65.4% -20.1%
=========================================
Files 1239 554 -685
Lines 51029 28309 -22720
Branches 1080 195 -885
=========================================
- Hits 43612 18516 -25096
- Misses 7180 9744 +2564
+ Partials 237 49 -188
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
I am not sure I understand how you fixed the issue here. I would like to better understand that and I have some proposals for you to change.
There is an open connection/transaction to the database while making calls to S3 to expand the directory (listing all files inside). It is not required to list the contents of the directory while holding the transaction opened. |
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.
still have questions, and want to discuss
…gressive-conection-release
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.
thank you very much for the additional changes!
Kudos, SonarCloud Quality Gate passed!
|
Code Climate has analyzed commit 27e1400 and detected 0 issues on this pull request. View more on Code Climate. |
What do these changes do?
It is not necessary to expand directories (access S3) while holding a transaction in Postgres.
This will free up more connections.
Related issue/s
How to test
DevOps Checklist