Hey everyone. Im running into a slow startup issue...
# orm-help
j
Hey everyone. Im running into a slow startup issue with prisma and apollo server. When I npm start, it takes around 15 min before the server is accessible. Has anyone else experienced this?
j
What version of Prisma? With Prisma 2 being out, this could be two very different things.
j
Its prisma 1, Im busy migrating to 2 but I need to fix 1 so the other devs can carry on working
Ive noticed that If I reduce the size of the resolvers and shema then it restarts quicker
@janpio sorry to @ you like this, its quite urgent, do you have any idea what this could be?
j
Sorry, no insight into this. I started after Prisma 1 was already in maintenance.
j
Do you know if there are any performance issues with Prisma 2 and large schemas?
j
What kind of performance? Generation, queries?
But no, nothing I am aware of.
If there is something, please open an issue and we will look into it instantly.
j
Mainly this startup time. Ill see if p2 has any startup issues with many resolvers
Thanks for the help
r
How many resolvers are you using? I've never experienced a startup that long using both 1 or 2 ..
j
P2 doesn't really have startup time at all, as resolvers are not part of Prisma any more but e.g. Nexus or whatevery you use to implement them.
j
@Richard Ward I have about 1200 fields in the schema. Im not sure how many resolvers but theres a lot