On Thursday, March 26, 2020 at 2:53:08 PM UTC-4, Mike Bayer wrote: > > is the issue that your follower database is only updating > asynchronously? I would likely organize the application to simply use two > different Session objects, one for master one for follower. Trying to do > it on a per-query basis is needlessly implicit and complicated. >
In my applications, I have explicit Primary/Writer and Secondary/Reader sessions. As a convenience, I will create a shortcut to proxy one of them onto a request(web)/context object as `.dbSession`. Certain logic flows will only utilize the Primary/Writer, other logic flows will only utilize the Secondary/Reader. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/5a92dc19-0d7a-41e0-bc6f-47b96ac1d32b%40googlegroups.com.