Also, `Meta.indexes` should also be added to the list of ways to create
indexes over here -
https://docs.djangoproject.com/en/2.1/topics/db/optimization/#use-
standard-db-optimization-techniques.
--
Ticket URL: <https://code.djangoproject.com/ticket/30419>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Akshesh Doshi):
On a second thought, I think it might be sensible to even remove
`Meta.index_together` from the
https://docs.djangoproject.com/en/2.1/topics/db/optimization/#use-
standard-db-optimization-techniques list. This is because Django
officially says that `Meta.indexes` is preferred over it over here -
https://docs.djangoproject.com/en/2.1/ref/models/options/#django.db.models.Options.index_together
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:2>
* owner: nobody => Akshesh Doshi
* has_patch: 0 => 1
Comment:
PR (assuming that the ticket gets accepted) -
https://github.com/django/django/pull/11296
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:3>
* needs_better_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
OK, accepting modulo comments on the PR. (Replacing the `index_together`
usage to point to `indexes` is probably worth it.)
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:4>
* needs_better_patch: 1 => 0
Comment:
https://github.com/django/django/pull/11296#discussion_r280985453
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"888fdf182e164fa4b24aa82fa833c90a2b9bee7a" 888fdf1]:
{{{
#!CommitTicketReference repository=""
revision="888fdf182e164fa4b24aa82fa833c90a2b9bee7a"
Fixed #30419 -- Favored Meta.indexes over Meta.index_together in
optimization docs.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"efb906cbe46e0eefe58d59bc068fe5221f39ca5e" efb906cb]:
{{{
#!CommitTicketReference repository=""
revision="efb906cbe46e0eefe58d59bc068fe5221f39ca5e"
[2.2.x] Fixed #30419 -- Favored Meta.indexes over Meta.index_together in
optimization docs.
Backport of 888fdf182e164fa4b24aa82fa833c90a2b9bee7a from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30419#comment:7>