-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optimize update_uploads
#783
Conversation
The previous code was doing a SELECT/UPDATE cycle for each of the `Upload` records needing updates. This will now avoid doing the SELECTs, and only emit `UPDATE` statements. As a driveby change, this should also fix an edge-case where a deleted `session_id` is immediately being reused.
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #783 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36602 36601 -1
==========================================
- Hits 35883 35882 -1
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #783 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36602 36601 -1
==========================================
- Hits 35883 35882 -1
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #783 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36602 36601 -1
==========================================
- Hits 35883 35882 -1
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #783 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36602 36601 -1
==========================================
- Hits 35883 35882 -1
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The previous code was doing a SELECT/UPDATE cycle for each of the
Upload
records needing updates. This will now avoid doing the SELECTs, and only emitUPDATE
statements.As a driveby change, this should also fix an edge-case where a deleted
session_id
is immediately being reused.