#36046: Create an index on the combination of ForeignKeys in the ManyToManyField
through table?
-------------------------------------+-------------------------------------
     Reporter:  Willem Van Onsem     |                    Owner:  (none)
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  5.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * resolution:   => wontfix
 * status:  new => closed
 * type:  Uncategorized => Cleanup/optimization

Comment:

 Django automatically adds a unique constraint for these two fields which
 is effectively an index, there is no need to add another one.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36046#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701941ce0821b-b82af83b-00cb-43f1-ad03-4709a4c1e8e8-000000%40eu-central-1.amazonses.com.

Reply via email to