Replies: 3 comments 2 replies
-
Hey @yashh! You currently cannot control the query engine server as this is intended to just be an implementation detail and isn't designed to be exposed to users. You would be able to achieve what you want but it would not be nice and would require monkey patching. What does the entry point file look like for your server? And how are you starting it? I'm not aware of the details of how gunicorn works but it may be possible to share the Prisma query engine server depending on how gunicorn spawn the multiple server processes. |
Beta Was this translation helpful? Give feedback.
-
@RobertCraigie On app startup I am calling
|
Beta Was this translation helpful? Give feedback.
-
Postgres 14
|
Beta Was this translation helpful? Give feedback.
-
Wondering how does deploying work with prisma?
Right now I am running
prisma py fetch
andprisma migrate
as part of deployment which is fetching the binaries and migrating the DB.However why I spawn the gunicorn server, each server process is spawning one instance of
prisma-query-engine-debian-openssl-1.1.x
on a new port. Since prisma is querying DB and returning data I think one process should sufficient handler many server process. Anyway I can control the query engine to spawn on a specific port and control it?Beta Was this translation helpful? Give feedback.
All reactions