79359016

Date: 2025-01-15 16:38:43
Score: 1
Natty:
Report link

Leaving open connections is the point of the pooling but leaving open transactions seems totally broken to me. The connection should be reset when it is returned to the pool: https://docs.sqlalchemy.org/en/20/core/pooling.html#reset-on-return

Maybe turn on pool logging as seen here: https://docs.sqlalchemy.org/en/20/core/pooling.html#logging-reset-on-return-events

Also I saw this but I'm not sure it affects you:

https://docs.sqlalchemy.org/en/20/dialects/mssql.html#mssql-reset-on-return

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Ian Wilson