Re: Django Persistent DB connections - A different approach

2011-12-15 Thread nipun batra
Thanks.Yes understood the flaw in my approach On Thu, Dec 15, 2011 at 12:15 AM, Alec Taylor wrote: > No reason you can't ACID the whole thing > > Important info: http://en.wikipedia.org/wiki/Concurrency_control#Methods > > On Thu, Dec 15, 2011 at 5:18 AM, akaariai wrote: > > A quick warning abou

Re: Django Persistent DB connections - A different approach

2011-12-14 Thread Alec Taylor
No reason you can't ACID the whole thing Important info: http://en.wikipedia.org/wiki/Concurrency_control#Methods On Thu, Dec 15, 2011 at 5:18 AM, akaariai wrote: > A quick warning about your approach: if you use that in multi-threaded > environment, you are toasted. You will get two concurrent

Re: Django Persistent DB connections - A different approach

2011-12-14 Thread akaariai
A quick warning about your approach: if you use that in multi-threaded environment, you are toasted. You will get two concurrent users for the same connection, and that will not work nicely. For example transaction control will be broken. That is also the reason why that sort of thing is not used i