#18092 closed New feature (duplicate)
Composite indexes
Description ¶
The patch adds support for composite indexes. Usage:
class Post(models.Model): creator = models.ForeignKey(User) date_published = models.DateTimeField() class Meta: composite_indexes = (('creator', 'date_published'),)
Change History (5)
by , 13 years ago
Attachment: | composite_indexes.diff added |
---|
comment:1 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This seems like a duplicate of #5805. FWIW I agree that this would be a nice addition.
comment:4 by , 13 years ago
Thanks for pointing out! Searching didn't give me any results on this issue.
Note:
See TracTickets
for help on using tickets.
Just thought that index_together might be a better name, for consistency with unique_together