I just wanted to provide some timing info for running prisma 3.1.1 on a lambda function with 1024MB RAM and DEBUG=*
I requested a simple function that does a single query to a table with 1 row. First as a cold start and then a second warm request.
Looks like on cold start, initializing prisma took ~0.75s (14:55.075Z - 14:54.321Z)
On a warm lambda the entire request took 923ms to run
prisma.tenant.findMany()
which seems like a while. It's a lambda function in a VPC talking to an aurora serverless pg database, I would expect it to be a bit faster than that.
Just wanted to share in case this is useful information for someone.