P
Prisma2w ago
tomo

`@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-engine
Use Prisma ORM without Rust engines | Prisma Documentation
Learn how to use Prisma ORM without Rust engines
No description
No description
2 Replies
tomo
tomoOP2w ago
I ended up removing those query compilers manually. I wonder if there's a way to just include only relevant query compilers
Nurul
Nurul2w ago
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.

Did you find this page helpful?