Migrations started using significantly more memory in 5.13.0 and crash with OOM #24061
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: cockroachdb
topic: prisma migrate deploy
CLI: prisma migrate deploy
Bug description
Our migrations have started to fail with OOM error even for smaller databases with a limited amount of migrations.
This may be related to some specific functionality that we use - CockroachDB, multischema support or ULID identifiers. Example schema that fail during migration is included.
Downgrading to 5.12.1 has fixed the issue.
Increasing amount of memory available for the deployment job from 128 MBs to 512 MBs also helps, but that is not an ideal solution.
How to reproduce
Generate migrations and run
prisma migrate deploy
Note that this works fine on developer machines, but fail during actual deployment to staging/live environments. In order to reproduce, ensure that you have 128 MBs of memory or less during the execution.
Expected behavior
Migrations pass successfully
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: