-
Notifications
You must be signed in to change notification settings - Fork 0
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
[#469] Reduce db/HTTP connections #626
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #626 +/- ##
==========================================
- Coverage 88.35% 88.32% -0.03%
==========================================
Files 210 210
Lines 6043 6074 +31
Branches 639 639
==========================================
+ Hits 5339 5365 +26
- Misses 704 709 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ 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.
Maybe we should assert for the reduces queries (if we actually we use less queries), if it's just the connections it's ok.
eb9108b
to
8025100
Compare
- Avoid retrieving the selectielijst service for each zaak - Take advantage of connection pooling by sharing client between zaken
8025100
to
5507b62
Compare
Fixes #469
I notices that there is quite a lot of duplication between the tasks
retrieve_and_cache_zaken_from_openzaak
andresync_zaken
.I will make a separate PR to refactor that, to make it easier to review. #627