Closed michaelgrn closed 5 years ago
I've also tried to use pool with promises and client releases, to no avail.
Do you still see the problem when using pool.query()
instead of pool.connect()
+ client.query()
? Also: those variables (username
, sid
, pid
) should probably be properties of the PostGres
instance.
Yeah I tried changing it to pool.query instead of pool.connect()+ client.query() and I am still encountering the same problem. Any other idea what it might be?
Nvm figured it out, issue with Express. Thanks!
Hey guys I have a problem. I am currently running docker with the bitnami/postgres image, using node pg for database interaction. My website is a bit high traffic, and after 10 queries suddenly it stops logging for a bit, for an undetermined amount of time (1-3 minutes?) before slowly clearing out the queue of queries and moving onto the next one. My code is as follows:
I left the comments in to show the variety of expirements I've run with the same results.