Django

Code

Ticket #5805 (reopened)

Opened 2 years ago

Last modified 4 weeks ago

Specify multicolumn indexes.

Reported by: Stavros Korokithakis <stavros@mylastname.net> Assigned to: nobody
Milestone: Component: Database layer (models, ORM)
Version: SVN Keywords: index multicolumn indexes database
Cc: fnl Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

It would be good if we could specify multicolumn indexes to be created in the model, sort of like unique_together but for index_together. I am not familiar with a way to do this currently, hence this feature request.

Attachments

Change History

11/02/07 23:28:24 changed by Simon G <dev@simon.net.nz>

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

Dupe of #373, which is pending the queryset rewrite/refactor I believe..

01/16/10 07:54:55 changed by matclayton

  • status changed from closed to reopened.
  • resolution deleted.

#373 is for multi column primary keys, not indexes.

02/02/10 02:12:40 changed by russellm

  • stage changed from Unreviewed to Accepted.

02/23/10 18:03:05 changed by fnl

  • cc set to fnl.

Add/Change #5805 (Specify multicolumn indexes.)




Change Properties
Action