Amit Upadhyay wrote:
> The crux of that solution is the middleware:
> 
>      def process_request(self, request):
>         state = request.method in ['GET', 'HEAD'] and 'slave' or 'master'
>         connection.use_state(state)
> 
> Which is same as what I am talking about.

I feel obliged to correct this. It's not the crux in any way but a 
convenient method of eliminating *most* but not all of hand work from 
managing connections. As many have pointed out such pure systems where 
GET doesn't touch any state just don't exist.

Unfortunately practice is more complex than theory and attempts to 
ignore it lead to systems that nobody uses.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to