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. |
|
@RobertCraigie On app startup I am calling |
|
Postgres 14
|
Uh oh!
There was an error while loading. Please reload this page.
Wondering how does deploying work with prisma?
Right now I am running
prisma py fetchandprisma migrateas 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.xon 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?All reactions