I have a nestjs scheduler which will run every one hour
I'm using multiple library to connect to postgres database through nestjs app
- prisma
- Knex
I have scheduler table that will have url to run on what datetime & a rule table that will have tablename, columnname, logicaloperator(i.e >,<,=,!=) & conditional operator(AND, OR) knex will create a query that is stored in database
for(const t of schedules) {
//this wont stop and will make call simultanously to url
fetch("url").catch()
}
the url will insert records it will take 1, 2, 3 hrs depending on the url but after certain time i'm getting Timed out fetching a new connection from the connection pool prisma error is it because i'm using multiple client to connect database?