Skip to content
Discussion options

You must be logged in to vote

the ORM Session used to support this directly through a feature called "autocommit" mode, we later named this to "library level autocommit mode" to clarify its difference from the driver level autocommit that you're using above. This mode was deprecated in the 1.4 series of SQLAlchemy and removed in 2.0. It basically led to code that created lots of connections and these connections were continuously having rollback/commit called on them, which performs poorly and also led to more deadlocks and transactional consistency issues.

there might be ways to rig a Session with events to sort of act in this way again but if you are using driver level autocommit with PostgreSQL, the connections won…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@albertalexandrov
Comment options

@CaselIT
Comment options

@albertalexandrov
Comment options

Answer selected by albertalexandrov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants