Hello! Has anyone attempted to use Prisma across h...
# orm-help
j
Hello! Has anyone attempted to use Prisma across hundreds of models? We're attempting to transition over to using Prisma, but we have over 400 tables in our Postgres database. From that, we generated the SDL types to create the
datamodel.primsa
file. When I try running
prisma generate
to generate the TypeScript files, it seems to hang for quite a while. Recently it crashed and there was a report.json file created by node specifying it ran out of memory. I'm running prisma again, this time with more memory:
NODE_OPTIONS=--max_old_space_size=8192 prisma generate
. For now it's still churning along, but I'm wondering if there is anything I could be doing better or differently?
h
Can you please tell us more about your data needs so that we may potentially improve performance in Prisma 2? If you have time. please try this with Prisma 2. If you encounter any problem in that, please file an issue here: https://github.com/prisma/prisma2/issues/new