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: thread.start_new_thread(__fuente1,(u,request)) if not 'f2' in request.session: thread.start_new_thread(__fuente2,(u,request)) if not 'f3' in request.session: thread.start_new_thread(__fuente3,(u,request)) if not 'f4' in request.session: thread.start_new_thread(__fuente4,(u,request)) All these threads will write the result in the session, calling it f1,f2,f3 and f4: request.session['f1']=my_list However when I have to get these objects back from the session, i have noticed only one of them exists... Is there a problem handling threads in django? Or is it a problem of writing on db? Will it work fine with memcache based session? Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---