On Mon, Apr 16, 2012 at 2:25 PM, Yarden Sachs <yrd...@gmail.com> wrote:
> * COUNTING THE RESULTS IS NOT THE POINT

ok, then that len(User.objects.all()) is not an appropriate benchmark, right?

what you're doing is a view that fetches all 9K records from the DB,
without any filtering.  will your views do that?  usually you should
filter in the DB, where it can benefit from any indexes, and process
only those records that are relevant for that view.

if you _have_ to do heavy processes to big portions of the data, then
you should do some denormalization, preprocessing, or queue
management.

why don't you explain what do you want to achieve?

-- 
Javier

-- 
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