emigrate/.changeset/thirty-beds-fetch.md
Joakim Carlstein aef2d7c861 fix(mysql): handle table initialization better in clustered database environments
The CREATE TABLE IF NOT EXISTS yields more locks than checking if the table exists using a SELECT first before running CREATE TABLE.
This makes more sense as the table usually already exists, so we optimize for the happy path.
2024-05-29 15:10:59 +02:00

5 lines
142 B
Markdown

---
'@emigrate/mysql': patch
---
Avoid "CREATE TABLE IF NOT EXISTS" as it's too locking in a clustered database when running it concurrently