We're encountering database connection timeout errors with Knex.js in our Retool application. The error message is 'Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?' during bulk insert operations.
How can we optimize our Retool database resource configuration to prevent these connection pool issues? Are there any recommended settings for connection pool size or timeout values we should implement?
We were using the Retool Database. And we noticed that the error would happen when our users were doing a bulk upsert with thousands of records. We decided to migrate everything to a postgres databse on aws and it gave us margin to work.