Disable transactions for a single migration #10601
|
Is it possible to disable transactions for a particular database migration? I want to build concurrently an index in Postgres, but that can't be done inside a transaction. |
Answered by
ryanmt
Jul 19, 2022
Replies: 2 comments 1 reply
|
Discussion in Slack: https://prisma.slack.com/archives/CBFFY3066/p1638820809041100 |
1 reply
|
It works if you split each |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For future reference, capturing this out of slack would be very helpful for those who aren't in your slack, or if you ever lose history.
TL;DR; after joining slack: TBD and this issue presents workaround options as well as makes a case for supporting concurrent index creation in prisma itself (rather than a way to avoid wrapping the migration in a transaction). #9154