-
Notifications
You must be signed in to change notification settings - Fork 977
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
feat: drop unused index #3165
feat: drop unused index #3165
Conversation
persistence/sql/migrations/sql/20230216142104000000_session_devices_index_drop.up.sql
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #3165 +/- ##
==========================================
+ Coverage 77.59% 77.62% +0.02%
==========================================
Files 317 317
Lines 20070 20041 -29
==========================================
- Hits 15573 15556 -17
+ Misses 3298 3292 -6
+ Partials 1199 1193 -6 see 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Awesome, thank you for your contribution! This looks pretty good and I have some ideas how to improve it further :)
@@ -0,0 +1,3 @@ | |||
ALTER TABLE session_devices DROP FOREIGN KEY session_devices_ibfk_2; | |||
ALTER TABLE session_devices DROP INDEX unique_session_device; | |||
ALTER TABLE session_devices ADD CONSTRAINT session_devices_ibfk_2 FOREIGN KEY (nid) REFERENCES networks(id); |
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.
ON DELETE CASCADE
is missing
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.
fixed and rebased
This index doesn't serve a real purpose and is interfering with the multi-region rollout.