P
Prisma6mo ago
zilla

Prisma without Engine for Serverless/Edge?

I have an old codebase that is using serverless.com framework on AWS Lambda and using Prisma. I was wondering with driverAdapters can I avoid the prisma engines? and probably just use like a query builder like Drizzle? Currently my function total size is like 54 MB! and almost 80% of it is Prisma engine things
patterns:
- '!node_modules/.prisma/client/libquery_engine-*'
- 'node_modules/.prisma/client/libquery_engine-rhel-*'
- '!node_modules/prisma/libquery_engine-*'
- '!node_modules/@prisma/engines/**'
patterns:
- '!node_modules/.prisma/client/libquery_engine-*'
- 'node_modules/.prisma/client/libquery_engine-rhel-*'
- '!node_modules/prisma/libquery_engine-*'
- '!node_modules/@prisma/engines/**'
any leads or help would be appreciated!
2 Replies
jonfanz
jonfanz6mo ago
Driver adapters still require the query engine, it’s just a smaller version of it. I would try it out and see what improvements you get!
zilla
zillaOP6mo ago
@Jon Harrell not much difference I can tell. Are there any plans for improving this? Considering the bundle size, there is not any difference
Want results from more Discord servers?
Add your server