Open francois-egner opened 2 weeks ago
Hi there,
I believe this issue might be a duplicate of #3098. It seems to cover similar concerns.
(8.1.0 → 8.2.0 is when the entire protocol message parsing/serialization was rewritten into pg-protocol.)
This probably isn’t related to the issue, but note that Client#connect()
is asynchronous; to avoid involving the query queue, make sure to await pg.connect()
.
(8.1.0 → 8.2.0 is when the entire protocol message parsing/serialization was rewritten into pg-protocol.)
This probably isn’t related to the issue, but note that
Client#connect()
is asynchronous; to avoid involving the query queue, make sure toawait pg.connect()
.
Thanks for the hint. I verified that this isnt the cause for my problem. But indeed I should await this for sure :)
Hi there,
I believe this issue might be a duplicate of #3098. It seems to cover similar concerns.
Very interesting. Using Node 16 also fixes the issue with the latest node-progres (8.13.0). Does downgrading to 8.1.0 solve your other problem?
I was trying out drizzle, using a PostgreSQL database (v15). I experience a huge performance issue just querying one row of a table with just one row. So I dig a little deeper inside the code and found out that it internally calls the
query
method of theClient
class. I also tried to call thequery
method of theClient
class with a plain query text/string which resulted in a way faster performance. I was able to reproduce everything using the plain pg module:This
pg.query
call takes 40-50ms!This
pg.query
call takes 2-3msBy downgrading over and over again I found out that version
8.1.0
is the last version that produces the same timing results for bothquery
calls. Now I wonder what I am missing here. I wonder what I am doing wrong and why it seems to only be me having this problem...