Hello,

I have been using this great category/tag model:

https://github.com/praekelt/django-category/blob/master/category/models.py

... and I noticed that the author added a db_index on the SlugField of
the Category model.

I hate to admit it, but I don't think I have ever explicitly used
db_index parameter on any of my models.

When's a good time to use db_index? Is there a general rule of thumb
when coding Django models?

Sorry if silly question.

Thanks so much!

Cheers,
Micky

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to