Number of connection per pool
I want to modify the number of connection per pool of Prisma database. Is it possible?
3 Replies
Hi @Estelle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I do not have enough information to answer your question specifically about modifying the number of connections per pool for Prisma in Wasp. The provided knowledge sources don't contain direct information about this particular configuration option.
However, I can provide some related information about Prisma configuration in Wasp:
Wasp does allow some customization of Prisma settings. For example, you can enable Prisma preview features and configure PostgreSQL extensions in your Wasp app configuration as described in the Wasp documentation (https://wasp-lang.dev/docs/data-model/backends#prisma-configuration).
If you need more specific Prisma configuration options that are not directly supported by Wasp, you might want to check the GitHub issue discussing allowing users to specify NPM dependency versions themselves GitHub Issue #645 (https://github.com/wasp-lang/wasp/issues/645). This suggests that the Wasp team is considering ways to give users more flexibility in configuring dependencies like Prisma.
For now, if you need to modify specific Prisma connection settings, you may need to reach out to the Wasp community or file a feature request on their GitHub repository.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Estelle, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
I've never done this, but I see it can be done by setting up the
DATABASE_URL
env var in a certain way: https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool
So, if you set up the DATABASE_URL
to include the settings you want - it will work with Waspthanks