Re: db_index=True doesn't create index

2011-03-03 Thread Dario Bertini
On Mar 2, 12:15 am, Łukasz Rekucki wrote: > Seehttp://code.djangoproject.com/ticket/14651 > > Also, from PostgreSQL's docs: > > One should, however, be aware that there's no need to manually create > indexes on unique columns; doing so would just duplicate the > automatically-created index. > > So

Re: db_index=True doesn't create index

2011-03-01 Thread Łukasz Rekucki
On 1 March 2011 20:48, Dario Bertini wrote: > > but i've found no related bug on the bug tracker (except for a not- > very-related and also old and fixed one: > http://code.djangoproject.com/ticket/1828 > ) See http://code.djangoproject.com/ticket/14651 Also, from PostgreSQL's docs: One should

db_index=True doesn't create index

2011-03-01 Thread Dario Bertini
this is my models.py: from django.db import models from django.db.models import Model class Word(Model): word = models.CharField(unique=True, db_index=True, max_length=30) num = models.IntegerField(default=0, editable=False) (actually it was much much more complicated, but i redu