Skip to content
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

Merged
merged 1 commit into from Mar 17, 2023
Merged

feat: drop unused index #3165

merged 1 commit into from Mar 17, 2023

Conversation

alnr
Copy link
Contributor

@alnr alnr commented Mar 13, 2023

This index doesn't serve a real purpose and is interfering with the multi-region rollout.

@alnr alnr requested a review from aeneasr as a code owner March 13, 2023 14:50
@alnr alnr self-assigned this Mar 13, 2023
@alnr alnr requested a review from zepatrik as a code owner March 13, 2023 14:50
aeneasr
aeneasr previously approved these changes Mar 13, 2023
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #3165 (2f76178) into master (ee1f02e) will increase coverage by 0.02%.
The diff coverage is n/a.

❗ Current head 2f76178 differs from pull request most recent head b3ac630. Consider uploading reports for the commit b3ac630 to get more accurate results

@@            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.

Copy link
Member

@aeneasr aeneasr left a 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);
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed and rebased

@aeneasr aeneasr merged commit 852dea9 into master Mar 17, 2023
24 checks passed
@aeneasr aeneasr deleted the drop-index branch March 17, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants