Re: Updating a module level shared dictionary

2010-06-16 Thread Dan Stromberg
On Tue, Jun 15, 2010 at 6:33 PM, MRAB wrote: > Vishal Rana wrote: > >> Hi, >> >> A module level dictionary 'd' and is accessed by different >> threads/requests in a django web application. I need to update 'd' every >> minute with a new data and the process takes about 5 seconds. >> What could be

Re: Updating a module level shared dictionary

2010-06-16 Thread Dave Angel
Vishal Rana wrote: Hi, A module level dictionary 'd' and is accessed by different threads/requests in a django web application. I need to update 'd' every minute with a new data and the process takes about 5 seconds. What could be best solution where I want the users to get either the old value

Re: Updating a module level shared dictionary

2010-06-15 Thread Ian Kelly
On Tue, Jun 15, 2010 at 7:04 PM, Vishal Rana wrote: > Hi, > A module level dictionary 'd' and is accessed by different threads/requests > in a django web application. I need to update 'd' every minute with a new > data and the process takes about 5 seconds. > What could be best solution where I wa

Re: Updating a module level shared dictionary

2010-06-15 Thread MRAB
Vishal Rana wrote: Hi, A module level dictionary 'd' and is accessed by different threads/requests in a django web application. I need to update 'd' every minute with a new data and the process takes about 5 seconds. What could be best solution where I want the users to get either the old v

Updating a module level shared dictionary

2010-06-15 Thread Vishal Rana
Hi, A module level dictionary 'd' and is accessed by different threads/requests in a django web application. I need to update 'd' every minute with a new data and the process takes about 5 seconds. What could be best solution where I want the users to get either the old value or the new and nothi