Would like to further add - the python CPU Usage is hitting almost 100 %. 
When I run  a Select * query on Mysql, its quite fast and CPU is normal. I 
am not sure if anything more needs to be done in Django. 

On Friday, March 10, 2017 at 10:55:51 AM UTC+5:30, Web Architect wrote:
>
> Hi,
>
> I am a bit perplexed by this and not sure what the solution is. Following 
> is the scenario:
>
> There is a Model A with 10000 records. Just a simple queryset - 
> A.objects.all() is resulting in CPU hitting almost 100%. Is there a way to 
> optimize this? But why would such a query result in high CPU Usage?
>
> Would appreciate if anyone could throw some light on the above.
>
> Thanks.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e0cc58b8-f44b-4745-be46-fe7b52503b74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to