schettn
PPrisma
•Created by schettn on 9/16/2024 in #help-and-questions
Lazy load query engine in Cloudflare Workers
Hi!
When using
previewFeatures = ["driverAdapters"]
deploying to most free plans fail due to the bundle size limit of 1mb. This is caused by the added bundle size of the query engine wasm.
Wouldnt it be possible to lazy load the wasm when the worker is executed?
- With that, the bundle would be reduced by 2MB.
- Yes the execution of the worker would take longer, but I think this doesnt really matter in most cases
- The Cloudflare Worker free plan offers 128mb of RAM. So it would be possible to lazy load the query engine.
https://github.com/prisma/prisma/issues/233503 replies
PPrisma
•Created by schettn on 7/31/2024 in #help-and-questions
Why do i need a Prisma account for database subscriptions?
I wanted to use subscriptions for my application. I read that this can be achived with Pulse.
But why exactly do I need the prisma cloud for that? In Prisma V1 subscribing to the database
was possible without a cloud.
https://www.prisma.io/blog/tutorial-building-a-realtime-graphql-server-with-subscriptions-2758cfc6d427
2 replies
PPrisma
•Created by schettn on 7/12/2024 in #help-and-questions
How to use getDMMF
I use the following code to load the dmmf from a absolute path:
I get the following error:
6 replies
PPrisma
•Created by schettn on 6/19/2024 in #help-and-questions
How to cover this custom SQL with Prisma
Hi, i currently use this SQL statement to fetch data and make calculations. Is this also possible without a RAW query?
4 replies