Mischa
12/14/2021, 2:05 PMnikolasburk
Mischa
12/14/2021, 2:50 PMMischa
12/14/2021, 2:50 PMMischa
12/15/2021, 1:13 PMMischa
12/16/2021, 10:34 AMnikolasburk
do I need both .prisma/client/index.js and @prisma/client/runtime?Yes you need both indeed 👍 Quoting our engineer: From looking at his graph, it looks like his generated client .prisma/client/index.js which contains the DMMF is very big. On a higher level, this generated file is in charge of creating a new client defined in @prisma/client/runtime with that DMMF. In other words, this probably means that he has a big schema and the generated/saved DMMF is very huge. Can you confirm that you have quite a sizeable Prisma schema? Generally, the Data Proxy should be able to improve the situation so I’d certainly suggest giving it a try! Also, we’d love to have more information about the cold start, so it would be great if you could open up an issue with as much information as possible about your setup so that we can look into it properly 🙂
nikolasburk
Mischa
12/16/2021, 11:16 AMMischa
12/16/2021, 11:17 AMMischa
12/16/2021, 11:18 AMnikolasburk
my schema.prisma file is about 800 linesDoesn’t seem unlikely unfortunately 😐 we’ll probably look into the DMMF compression soon!
i can try to write up a ticket with more info but pretty much all i have is the bundle map i posted aboveThat would certainly be helpful! We’re very eager to resolve these kinds of problems in serverless environments and persisting this on GitHub would help us a lot in doing so 🙂
Mischa
12/16/2021, 11:40 AMMischa
12/16/2021, 12:03 PMMischa
12/16/2021, 12:04 PM