In theory what you're claiming should be fine... but there's always a chance that what you *think* you're doing isn't really what you're doing.
I suggest creating a tiny one-file flask app that mimics your behavior and reproduces the result -- then share it here. Your example on StackOverflow doesn't show how the sessions/request/app is setup or anything is invoked. There's a good chance you're doing everything right and this is a weird RDS specific thing that Mike hasn't seen before. But there's also a decent chance you've done something wrong or have an anti-pattern somewhere that is exacerbating this issue. Over the years a handful of people have posted random problems, and it just ends up being a small misuse in a configuration or setup creating a cascade of hard-to-diagnose errors down the line. -- 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 post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.