Re: High Traffic
Sure,
I experienced unknown performance issues(slow responses) when high traffic would hit that site.
so, started to test what happens if i hit the web site with a big calculation, like len function on an 9k objects.
when i try to do it from client, it takes 0.7 secs to come back with response, if try to do it from 10 parralel client, it takes 15 secs for one http response!
my team member, tried to find out the problem, and his conclusion is - python+django is not fast. and i DONT like that. its not right!
So i am trying to find out why is that.
if a i am trying to do simpler tasks like empty template rendering. or .count method, things go faster.
but apart from the len function, i still performance issues if many users try to access the web site. its a delivery service application.
Any ideas?
On Monday, April 16, 2012 11:39:55 PM UTC+3, Javier Guerra wrote:
On Mon, Apr 16, 2012 at 2:25 PM, Yarden Sachs <yrdnsa@gmail.com> wrote:--
> * COUNTING THE RESULTS IS NOT THE POINTok, 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 view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/2Qys92uLTawJ.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home