On 07 Feb 2008 Thu 03:55:22 Michael Newman wrote:
> Reality is 19 apache processes isn't that much. That means there are
> only about 19 requests on your server at one time. So what that means
> is that either your server is whoafully unprepared for the real world,
> or what is being done with your processes is really heavy, like file
> uploading or processing. CGI might actually increase the memory usage
> by your system if you are uploading files and lighttp only will help
> marginally with your static media files.
Thanks for your reply,
There is no file uploading feature for users, it's hardly used when admin
wants to add something. I can say that my site relies on mostly server-side.
I have a news application and it relies on tag system. When I want to get
news, I fetch only news object in my view and render template. In template, I
use this news' objects. I mean;
Instead of writing something like this;
def view(request):
object = Foo.objects.get(id=1)
tags = object.tags.all()
sometnhing = object.something.all()
I use
def view(request):
object = Foo.objects.get(id=1)
and in template
{% for tag in object.tags.all %}
{% for somting in object.something.all %}
Does it affect performance? Also, I use generic views in urls.py and the data
I fetch is kinda heavy. I think, when urls.py is called (so, in every page)
there is an extra query load even if it's not used?
You can see my project on [0] svn adress. I hope, you will understand me more.
[0] http://svn.pardus.org.tr/oi/trunk/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---