SQLAlchemy sessions poorly implemented #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, one session is started when application starts, and is used forever. If MySQL goes away or the session times out, the app will fail.
The correct way of using sessions is to create a session for a group of related database tasks, and close it once those tasks are complete.