`@prisma/client/runtime` size is big(bigger than rust-engine version)
Hi! I have a question about a preview feature
no-rust-engine
. We use Prisma ORM on AWS Lambda function.
I updated Prisma version to 6.14.0 from 6.6.0 and setup configuration to use runtime, hoping that this will reduce the total size. Turned out the size actually increased. As seen in the screenshot, the node_modules size is around 100MB. I narrowed down the directory and found that runtime
has many files that are not relevant to the project (we use postgres) should these be removed manually to reduce the total size?
Ref https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/no-rust-engineUse Prisma ORM without Rust engines | Prisma Documentation
Learn how to use Prisma ORM without Rust engines


2 Replies
I ended up removing those query compilers manually. I wonder if there's a way to just include only relevant query compilers
Hey!
We just published an official example of deploying queryCompiler on AWS Lambda:
https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/aws-lambda-sst-esbuild
Can you check this out?
There are also steps on verifying the deployment size.
GitHub
prisma-examples/generator-prisma-client/aws-lambda-sst-esbuild at l...
🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.