#23435: GFK should be indexed -------------------------------------+------------------------------------- Reporter: aaugustin | Owner: nobody Type: | Status: new Cleanup/optimization | Version: master Component: Database layer | Resolution: (models, ORM) | Triage Stage: Accepted Severity: Normal | Needs documentation: 0 Keywords: | Patch needs improvement: 0 Has patch: 0 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by charettes): The `('object_id_abstract', 'content_object_abstract')` index should only be added to `BasePerson` indexes and not `Person` ones. In this case you can solely rely on `opts.local_fields` to make sure both `ct_field` and `fk_field` are local in order to add the index. If one of the fields is not local (it belongs to a concrete parent) then the index shouldn't be created. -- Ticket URL: <https://code.djangoproject.com/ticket/23435#comment:4> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.97d187baa5b13fb8e52e3c5c1450d221%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.