On Tue, Jun 17, 2014 at 11:14 PM, Tom Evans <tevans...@googlemail.com> wrote:
> You want a multi column index when you want to speed up queries
> involving all the columns in that query.

Or, depending on database features, queries involving all the
columns[0:N] - eg an index on (first_name, last_name, sex) would still
optimise a query on first_name and last_name. See your database for
more details!

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1Ljy%2BLAWAaC%2B7EQ%3D6msPwXGhSkwR5kftNC4sQhOZ%2Bm68A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to