document index created for a ForeignKey
It would be helpful if the Model field docs mentioned that Django automatically creates an index for ForeignKey columns.
https://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
The docs could also mention how to disable this behavior (db_index=False) and why the user may want to do this:
- FK created for consistency, not joins
- alternative special indexes (partial, multiple column, etc) will be created instead
Relevant links:
Change History
(6)
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Cleanup/optimization
|
Cc: |
raulcumplido@… added
|
Owner: |
changed from nobody to Raúl Cumplido
|
Cc: |
timograham@… added
|
Has patch: |
set
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In db598dd8a053fe17c3308f89cd8f40676e2c479e: