Hi Forestadmin team,
I am regularly using the “select all records” feature to post some actions on a wide list of selected users.
Now that our user database is growing, we are getting more and more timeout errors with the getIdsFromRequest function call.
For example, the action is running well if I am selecting around 1200 users, but I am getting a timeout if my list is containing more than 2000 users.
The call that I am using:
await new RecordsGetter(models.users).getIdsFromRequest(req)
The error I am getting when selecting more than 2000 users:
UnhandledPromiseRejectionWarning: TimeoutError: ResourceRequest timed out at ResourceRequest._fireTimeout (/usr/src/app/node_modules/generic-pool/lib/ResourceRequest.js:62:17) at Timeout.bound (/usr/src/app/node_modules/generic-pool/lib/ResourceRequest.js:8:15) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)
My version: forest-express-sequelize: 6.0.0