PrismaP
Prisma15mo ago
12 replies
zaloster

Migrations taking too long

Hi,
I'm rewriting this since I think I may have written in the wrong channel, sorry.
I've followed the instruction to create a baseline migration as shown here: https://www.prisma.io/docs/orm/prisma-migrate/getting-started
This works good but now when I try to create a new migration it takes forever (~15 mins) to run (pnpm exec prisma migrate dev --name testing)
I have to say that the database is around 70 tables and is running in a docker container using the official mysql image.


Info regarding Prisma:
prisma                  : 5.21.1
@prisma/client          : 5.21.1
Computed binaryTarget   : linux-musl-openssl-3.0.x
Operating System        : linux
Architecture            : x64
Node.js                 : v20.18.0
Query Engine (Node-API) : libquery-engine bf0e5e8a04cada8225617067eaa03d041e2bba36 (at node_modules/.pnpm/@prisma+engines@5.21.1/node_modules/@prisma/engines/libquery_engine-linux-musl-openssl-3.0.x.so.node)
Schema Engine           : schema-engine-cli bf0e5e8a04cada8225617067eaa03d041e2bba36 (at node_modules/.pnpm/@prisma+engines@5.21.1/node_modules/@prisma/engines/schema-engine-linux-musl-openssl-3.0.x)
Schema Wasm             : @prisma/prisma-schema-wasm 5.21.1-1.bf0e5e8a04cada8225617067eaa03d041e2bba36
Default Engines Hash    : bf0e5e8a04cada8225617067eaa03d041e2bba36
Studio                  : 0.503.0
Preview Features        : relationJoins, prismaSchemaFolder


Attached additional screenshot.


Thank you very much
Snapshot_2024-11-05_10-46-05.png
Learn how to migrate your schema in a development environment using Prisma Migrate.
Getting started with Prisma Migrate | Prisma Documentation
Was this page helpful?