Re: [sqlalchemy] Testing with a fake read replica

2020-03-11 Thread Mike Bayer
On Wed, Mar 11, 2020, at 2:17 PM, Colton Allen wrote: > Thank you. My use case didn't permit me to use your examples but, based on > your advice, I ended up using "after_flush_postexec" event. Any consequences > from doing this? Seems to work fine for now. this is just the test suite right?

Re: [sqlalchemy] Testing with a fake read replica

2020-03-11 Thread Colton Allen
Thank you. My use case didn't permit me to use your examples but, based on your advice, I ended up using "after_flush_postexec" event. Any consequences from doing this? Seems to work fine for now. On Wednesday, March 11, 2020 at 12:34:12 PM UTC-5, Mike Bayer wrote: > > > > On Wed, Mar 11,

Re: [sqlalchemy] Testing with a fake read replica

2020-03-11 Thread Mike Bayer
On Wed, Mar 11, 2020, at 12:44 PM, Colton Allen wrote: > Hi, > > Before we talk about the read-replica, let's talk about the test suite as it > is. I have a sessionmaker in my test suite configured to use an external > transaction. Basically identical to this: >

[sqlalchemy] Testing with a fake read replica

2020-03-11 Thread Colton Allen
Hi, Before we talk about the read-replica, let's talk about the test suite as it is. I have a sessionmaker in my test suite configured to use an external transaction. Basically identical to this: