Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set_roll_back should only rollback initialized connections
The exception handler call "connections.all()". This creates a database connection to all defined databases. As a small optimization you can use "connections.all(initialized_only=True)" to rollback only the database to which the current thread has open connections. (My application can have many databases defined, and this loop is identified as a source of many idle database connections)
- Loading branch information