Re: cache optimization

2009-12-22 Thread Leonel Nunez
> instead of apache lets use NGINX .. great :) > or cherokee saludos .. Leonel -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: cache optimization

2009-12-22 Thread Gaffar Overcomes
instead of apache lets use NGINX .. great :) On Tue, Dec 22, 2009 at 5:08 PM, Victor Loureiro Lima < victorloureirol...@gmail.com> wrote: > We use django for a project in my company, and by using memcached and a few > db_index on the correct fields of my models, I was able to go from 3 request >

Re: cache optimization

2009-12-22 Thread Victor Loureiro Lima
We use django for a project in my company, and by using memcached and a few db_index on the correct fields of my models, I was able to go from 3 request per second, to approximatelly 300 request per second, mainly doing views cache. I didnt resort to per-model caching, or even NGINX and it solved m

Re: cache optimization

2009-12-22 Thread omat
Thank you both very much for the comments. I just setup ngnix in front of apache yesterday and it really helped getting out of this mess. I didn't know about its advanced features you mentioned and I will experiment with them soon. I am caching the context of a page, but when new content arrives,

Re: cache optimization

2009-12-22 Thread Michael
On Tue, Dec 22, 2009 at 8:50 AM, Javier Guerra wrote: > On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote: > > Nginx can also create static files from dynamically served pages, so you > > could serve pages directly from disk. > > this is one of the best ways to do it. you could setup a > mostly-co

Re: cache optimization

2009-12-22 Thread Javier Guerra
On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote: > Nginx can also create static files from dynamically served pages, so you > could serve pages directly from disk. this is one of the best ways to do it. you could setup a mostly-complete static copy of your site, and make nginx call the dynamic on

Re: cache optimization

2009-12-22 Thread Michael
Are you using Memcache? It should utilize as much of the cache as it can without ever causing a memory overflow error. If you aren't, I would highly recommend using it, it makes life easier because it just works. Of course with only 512mb of RAM, depending on what you are caching and how much proc