[6.7.0] Slow client generation and call to getDMMF()
We recently upgraded to 6.7.0 and noticed that generation of the new typescript prisma client is very slow as well as the call to getDMMF().
This is the output of running db push:
Not only does the actual generation take close to a minute, but we have a custom generator that generates some prisma enum types to zod schemas, and this custom generator uses
getDMMF
from @prisma/internals
and waiting for it to return is the majority of the 446 seconds.
Can something be done to make it go faster?1 Reply
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!