Managing transactions using multiple databases

2013-07-06 Thread Leandro Boscariol
Hello, During the design of a project, I came across a situation where I will have 2 databases. Not a big deal, it is very well documented in Django docs . Dealing with transactions

Re: Managing transactions using multiple databases

2013-07-06 Thread Leandro Boscariol
Well, even though without true two-phase commit, for now that will do, thanks. And also thanks for mentioning xact, I wasn't aware of that! Cheers, Leandro On Saturday, July 6, 2013 10:41:11 AM UTC-3, Christophe Pettus wrote: > > > On Jul 6, 2013, at 2:54 PM, Leandro B

Re: Managing transactions using multiple databases

2013-07-08 Thread Leandro Boscariol
= Ob1.save(using=db1) obj2 = Obj2.save(using=db2) if not_cool: raise Exception except Exception: return False return True Cheers, Leandro On 6 July 2013 16:44, Christophe Pettus wrote: > > On Jul 6, 2013, at 8:58 PM, Leandro Boscariol wrote: > >