You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
Generator typegraphql-prisma is taking >4 minutes compared to prisma client for a schema with >400 models while prisma client takes just under 1-2 seconds. Is this expected behaviour ?
To Reproduce
Run npx prisma generate on a schema with lot of models with below generator
Expected Behavior
I would expect it to be taking just a few seconds to generate everything.
Logs
prisma:GeneratorProcess prisma:getDMMF Using getDmmf Wasm +2743ms +419ms
prisma:GeneratorProcess prisma:getDMMF Using given datamodel +0ms +1ms
prisma:GeneratorProcess prisma:getDMMF dmmf data retrieved without errors in getDmmf Wasm +799ms +798ms
prisma:cli:bin Execution time for executing "await cli.parse(commandArray)": 413122.55179190636 ms +408315ms
✔ Generated Prisma Client (v5.20.0) to ./../node_modules/@prisma/client in 1.68s
✔ Generated TypeGraphQL integration to ./../node_modules/@generated/type-graphql in 409.73s
Environment (please complete the following information):
prisma:GeneratorProcess prisma:getDMMF Using getDmmf Wasm +2938ms +452ms
prisma:GeneratorProcess prisma:getDMMF Using given datamodel +0ms +0ms
prisma:GeneratorProcess prisma:getDMMF dmmf data retrieved without errors in getDmmf Wasm +848ms +848ms
prisma:cli:bin Execution time for executing "await cli.parse(commandArray)": 354003.81416606903 ms +348891ms
✔ Generated Prisma Client (v5.20.0) to ./generated/prisma in 1.73s
✔ Generated TypeGraphQL integration to ./generated/type in 350.41s
I have set the output directory to outside node_modules, but does not seem to help
Describe the Bug
Generator typegraphql-prisma is taking >4 minutes compared to prisma client for a schema with >400 models while prisma client takes just under 1-2 seconds. Is this expected behaviour ?
To Reproduce
Run npx prisma generate on a schema with lot of models with below generator
Expected Behavior
I would expect it to be taking just a few seconds to generate everything.
Logs
Environment (please complete the following information):
OS: Mac M3
Additional Context
Saw the same issue as closed here - Issue
I have tried the steps mentioned here but have not been able to bring the time down
Appreciate any help here , thanks in advance !
The text was updated successfully, but these errors were encountered: