-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Create explicit index objects for every index #700
Comments
We need to be careful to avoid creating duplicate indexes in the database. Most databases create an implicit index for PRIMARY KEY and UNIQUE constraints. If you then explicitly create an INDEX on the same columns, a new, duplicate index will be maintained by the database. |
Marking for re-triage; this should probably be Here are the main things that would change in Metadata:
Migrations would then promote the indices' configuration to the For foreign keys, everything should "just work" in Migrations since there is typically no implicit index on |
Yes, the tests will need to be updated. |
blocked by #3648 |
Implemented in #3764 |
Currently some indexes are inferred from keys by Migrations when using relational models. Per design meeting notes every index should be created explicitly in the model.
The text was updated successfully, but these errors were encountered: