-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
console.time('timer1');
const client = await pool.connect();
console.timeEnd('timer1');
Normally the code above runs fast - but suddenly it takes 20 seconds!? How is this even possible? I can see other people report the same at StackOverflow- but what is the reason and most of all the solution to this issue?
According to this 3 years old post: https://stackoverflow.com/questions/43346895/node-js-pg-pool-slow-on-second-execute
these guys moved to the other NPM module: https://www.npmjs.com/package/pg-promise
But how would it fix anything - when it is based on node-postgres as well?
dmitrii-sisutech