[sqlalchemy] debugging DetachedInstanceError

2020-04-22 Thread Jonathan Vanasco
I'm trying to figure out how I got a DetatchedInstanceError DetachedInstanceError: Parent instance is not bound to a Session; lazy load operation of attribute 'domain' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3) This is happening in a web application where I

Re: [sqlalchemy] SQLAlchemy Access to Native Bulk Loaders

2020-04-22 Thread Benjamin Taub
Thank you for taking the time to lay that out, Jonathan. I am not sure if this will be a major issue for me yet or not and I would like to stay within SQLAlchemy to the greatest extent possible. Since I'm using the core, I think I'll try your second option. If I run into issues, I can rethink at