-
Notifications
You must be signed in to change notification settings - Fork 64
editoast: migrations: add missing indexes on foreign keys #10792
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
Conversation
Signed-off-by: Younes Khoudli <younes.khoudli@epita.fr>
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10792 +/- ##
==========================================
- Coverage 81.83% 81.83% -0.01%
==========================================
Files 1081 1081
Lines 106879 106879
Branches 721 721
==========================================
- Hits 87466 87462 -4
- Misses 19372 19376 +4
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
woshilapin
left a comment
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.
Looks legit, didn't tested it.
leovalais
left a comment
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 thought Pg would generate indexes for fks at least... LGTM
Any reason why infra objects are left out?
|
Because of the UNIQUE constraint on |
|
you should take a look at the new version of pgAssistant here : https://github.com/beh74/pgassistant-community and read this post about missing indexes on FK : https://beh74.github.io/pgassistant-blog/doc/issue_index_fk/ |
Mostly generated with pgassistant, but can also be done with