Re: [sqlalchemy] Cascade_backrefs Behavior Deprecated For Removal In 2.0

2022-04-05 Thread Mike Bayer
On Tue, Apr 5, 2022, at 3:09 PM, Thorsten von Stein wrote: > Thanks, Mike. Yes, I am using the scoped session. Am I understanding you > correctly that, when using the scoped session, there is no penalty when > calling the sessionmaker repeatedly, but that you still prefer passing around >

Re: [sqlalchemy] Cascade_backrefs Behavior Deprecated For Removal In 2.0

2022-04-05 Thread Thorsten von Stein
Thanks, Mike. Yes, I am using the scoped session. Am I understanding you correctly that, when using the scoped session, there is no penalty when calling the sessionmaker repeatedly, but that you still prefer passing around sessions as parameters for transparency reasons? On Tuesday, April 5,

Re: [sqlalchemy] Cascade_backrefs Behavior Deprecated For Removal In 2.0

2022-04-05 Thread Mike Bayer
On Tue, Apr 5, 2022, at 1:02 PM, Thorsten von Stein wrote: > I'm currently trying to get my applications ready for SQLAlchemy 2.0. A > change that has forces code changes in numerous places is the removal of the > automatic addition of new instances to the session upon establishing a >