SQLAlchemy Session and Database Restore: Identity Map Serving Stale Rows After Backup Reload
We are designing a workflow where a database snapshot is restored into a running application that uses SQLAlchemy (2.0 assumed, though 1.4 compatibility is a concern). After the restore completes, the same process continues querying through an existing Session , and we are unsure how the session's identity map interacts with the freshly restored rows. Our co