[sqlalchemy] Re: Savepoints and expiry

2014-02-12 Thread Wolfgang Schnerring
* Michael Bayer [2014-02-12 09:19]: > On Feb 12, 2014, at 1:49 AM, Wolfgang Schnerring wrote: > > I know that flush does not trigger expiry. ;) I was wondering whether > > savepoints qualified as being a stronger boundary than flush and thus might > > be worthy of triggering expiry. But I guess t

[sqlalchemy] Re: Savepoints and expiry

2014-02-11 Thread Wolfgang Schnerring
On 11 Feb 2014 06:54:22 Michael Bayer wrote: > On Feb 11, 2014, at 3:44 AM, Wolfgang Schnerring wrote: > >parent = session.query(Parent).first() > >self.assertEqual(1, len(parent.children)) > >session.begin_nested() > >session.delete(parent.children[0]) > >

[sqlalchemy] Re: Savepoints and expiry

2014-02-11 Thread Wolfgang Schnerring
On 3 Feb 2014 09:51:20 Michael Bayer wrote: > On Feb 3, 2014, at 2:39 AM, Wolfgang Schnerring wrote: > > I guess I didn't make it clear enough that I'm talking mainly about > > this collections issue. Sorry about that; let me try again: > > I feel it would be much more convenient if the state ach

[sqlalchemy] Re: Savepoints and expiry

2014-02-02 Thread Wolfgang Schnerring
* Michael Bayer wrote: > On Jan 31, 2014, at 9:27 AM, Wolfgang Schnerring wrote: > > savepoint = session.begin_nested() > > session.delete(stuff) > > session.begin_nested() > > # Now, if I don't call session.expire_all() here, stuff won't be perceived > > as gone > > perform_checks_while_p