While there are several reasons that lead to long start up time and slow queries when using Prisma in Lambda, The Prisma Data Proxy should help alleviate some of those. For example:
The bundle size is smaller as the Prisma engine is not packaged anymore into the Lambda function
Queries can be slow due to DB connection initialisation on Lambda start. The Prisma Data Proxy improves those by keeping the connection to the database open.
High memory usage should also be reduces as we no longer start an additional process for the Prisma engine in the Lambda function.
Have you tried the Prisma Data Proxy out?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Rehan,
While there are several reasons that lead to long start up time and slow queries when using Prisma in Lambda, The Prisma Data Proxy should help alleviate some of those. For example:
Have you tried the Prisma Data Proxy out?