On Mon, Apr 15, 2013 at 3:39 AM, James Hartley jjhart...@gmail.com wrote:
On Thu, Apr 4, 2013 at 1:39 PM, Michael Bayer mike...@zzzcomputing.com
wrote:
the requery is due to the default expire_on_commit of session.commit():
http://docs.sqlalchemy.org/en/rel_0_8/orm/session.html#committing.
Hi,
I have two models: Parent and Child.
Whenever Parent is deleted, children will be cleaned up with help of
cascade rules.
However, I would also like to delete parent if there are no children left.
Right now, I'm thinking about ON DELETE trigger on Child table, running
query to calculate