#26808: Support adding class based indexes from Meta class
----------------------------------------------+------------------------
Reporter: akki | Owner: akki
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords: db-indexes
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+------------------------
Now that class based indexes are for real and can be added via migration
files using `AddIndex` operation, we should allow index addition from
`Meta` class as well.
Users will then be able to create indexes by defining something like the
following in their models:
{{{
#!python
class Meta:
indexes = [
models.Index(fields=['foo', 'bar'], name='my_index_name_idx')
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26808>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/047.af51cb6c899e03fac7ec6f30ae17bc60%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.