zilla
zilla
PPrisma
Created by zilla on 7/3/2024 in #help-and-questions
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!
3 replies
PPrisma
Created by zilla on 5/6/2024 in #help-and-questions
[Neon] [Driver Adapters] Do we need DIRECT_URL if using Driver Adapters?
So I have been migrating Planetscale DB to Neon and I was wondering if we need to provide DIRECT_URL for migrations when using Diriver Adapters? I could not find that information here: https://www.prisma.io/docs/orm/overview/databases/neon#how-to-use-neons-serverless-driver-with-prisma-orm-preview I am checking "Pooled connection" check box when procuring the connection string. Based on this, https://www.prisma.io/docs/orm/overview/databases/neon#how-to-use-neons-serverless-driver-with-prisma-orm-preview, when we needed to use pooling with PgBouncer, we needed to provide DIRECT_URL. Also, as a side question, do we need to use relationMode = "prisma" with Neon?
3 replies