Tuesday, March 1, 2011

Re: db_index=True doesn't create index

On 1 March 2011 20:48, Dario Bertini <berdario@gmail.com> 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, 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 there is just no need, to create the index - it's already there.

--
Łukasz Rekucki

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment