Re: Multiple threads writing on session object

2008-04-18 Thread bcurtu
Thanks Shane, Sure i will move to memcache, but i'm still on early developing stage. Anyway, it's a good idea the dict on session, i'll try it. On 18 abr, 18:31, "Shane Spencer" <[EMAIL PROTECTED]> wrote: > I don't know the answer to your code issue, maybe you should define a > global dict or

Re: Multiple threads writing on session object

2008-04-18 Thread Shane Spencer
I don't know the answer to your code issue, maybe you should define a global dict or list to handle the variables and change how you access them a bit? In another light, Is it a possibility for you to change your middleware product to take advantage of the cache middleware or be reworked a bit

Multiple threads writing on session object

2008-04-18 Thread bcurtu
Hi, I'm running django with database (mysql) based session middleware. When the user logs in, there is a process that have to perform some heavy calculations. In order not to block the response, what i do is opening several threads: if not 'f1' in request.session: