Multiple connection to DB, Alembic Hangs #1097
Unanswered
KhadijaMahanga
asked this question in
Usage Questions
Replies: 1 comment 3 replies
-
quite simply don't use multiple connections in an alembic migration. use a single connection / transaction for the entire operation, so that DDL operations aren't deadlocking against other operations. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Every time I run upgrade I have to first terminate all connections to my PostgreSQL database. Otherwise it hangs.
What should I do to make sure I don't need to terminate other connection?
Beta Was this translation helpful? Give feedback.
All reactions