#2350: ManyToManyField and db_index
------------------------------+---------------------------------------------
Reporter: Rudolph | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone: Version 1.0
Component: Database wrapper | Version: SVN
Severity: normal | Keywords:
------------------------------+---------------------------------------------
Hi,
When combining a db_index with a ManyToManyField, the db_index is ignored,
while an index should be made on the corresponding column in the
ManyToMany table. One could even agrue that it allways makes sense to put
indexes on both sides of the a ManyToMany table, but that would be to much
magic: explicit is better than implicit. Anyhow:
{{{
class Foo(models.Model):
users = ManyToManyField(User, db_index=True)
}}}
Doesn't give indexes and doesn't warn you that no index will be created.
--
Ticket URL: <http://code.djangoproject.com/ticket/2350>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---