Failed requests
After enabling detailed logging on the Prisma Client instance, I've noticed quite a few failed query attemps.
Why?
1 Reply
Hi @ProEvilz đź‘‹
Prisma Accelerate includes an internal component called Query Engines, which handle incoming database queries. If a Query Engine does not receive traffic for 10 minutes, it automatically shuts down, and a new Query Engine is provisioned upon the next request.
The logs you’re seeing typically appear when a database query is executed after an idle period, prompting a new Query Engine to start up. I believe you would also be getting “Schema (re)uploaded…” log which would indicate that a new Query Engine is being allocated and needs to retrieve the schema hash for your schema.prisma file.