Viewing manuscripts in production taking too long
When viewing a manuscript on production the loading time is longer on the new release than on the previous version. No errors are shown on the console.
Expected behaviour
Being able to view manuscripts on a short time
Current behaviour
Steps to reproduce
- Go to manuscripts
- click production on one of the manuscripts
- long loading time
- the manuscript will load
Environment
container error logs
error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? name=KnexTimeoutError, sql=undefined, bindings=undefined, originalStack=KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_PG.acquireConnection (/home/node/app/node_modules/knex/lib/client.js:348:26)
at runMicrotasks (<anonymous>)
at runNextTicks (node:internal/process/task_queues:61:5)
at listOnTimeout (node:internal/timers:528:9)
at processTimers (node:internal/timers:502:7)
at async QueryBuilder.execute (/home/node/app/node_modules/objection/lib/queryBuilder/QueryBuilder.js:667:22)
at async source (/home/node/app/server/model-manuscript/src/graphql.js:2108:10)
at async middleware (/home/node/app/node_modules/graphql-shield/cjs/generator.js:30:24)
error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? name=KnexTimeoutError, sql=undefined, bindings=undefined, originalStack=KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_PG.acquireConnection (/home/node/app/node_modules/knex/lib/client.js:348:26)
at runMicrotasks (<anonymous>)
at runNextTicks (node:internal/process/task_queues:61:5)
at listOnTimeout (node:internal/timers:528:9)
at processTimers (node:internal/timers:502:7)
at async QueryBuilder.execute (/home/node/app/node_modules/objection/lib/queryBuilder/QueryBuilder.js:667:22)
at async fetchMethod (/home/node/app/server/querycache/index.js:137:20)
at async cachedGet (/home/node/app/server/querycache/index.js:153:23)
at async middleware (/home/node/app/node_modules/graphql-shield/cjs/generator.js:30:24)