question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pg-query-stream runs VERY slow

See original GitHub issue

Hi,

I have noticed that pg-query-stream runs very slow compared to pg , about 10x slower …Tested on

pg 7.17.0
pg-query-stream 2.1.2
node 12.14.0
postgresql 10

The old versions of pg and pg-query-stream works fine , pg 6.1.2 and pg-query-stream 1.0.0

Any idea?

Thanks! Gabriel

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
brianccommented, Jan 9, 2020

I’m going to release a new major version of pg-query-stream in about 1 hour. The internals are substantially re-written. Interested in if you see more performance improvements! Also, I plan on working hard and long on performance for pg@9.0. This module has collected some cruft and kept old, strange API design decisions around for a long time in the name of backwards compatibility or me not having enough time to get to things. That’s changing for 2020. I had plans to already start on a bunch of this work, but cut the end of my finger off on NYE…now that I can (mostly) type okay again the work has resumed! Stay tuned…just writing changelog entry for pg-query-stream@3.x and will push it.

1reaction
brianccommented, Jan 10, 2020

my work day got a little out of control & I didn’t get a chance to release - wanted to wait for a review on it & now its a bit late…would rather release in the AM when I get up so I’ll do this w/ my morning coffee tomorrow. Sorry for the delay!

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - nodejs + postgresql way too slow - Stack Overflow
When I run apache bench on it, it get only about four requests per second. If I run the same query in php/apache...
Read more >
Dealing With Slow Queries With PostgreSQL - pgDash
In every deployment, there are always a few queries that run too slow. Read on to see how to discover queries that take...
Read more >
Find the slow running queries in postgresql - YouTube
( 24*7) on Call Support for PostgreSQL /Open Source databases. ... PostgreSQL : Find the slow running queries in postgresql.
Read more >
Slow query on primary server runs fast on hot standby
I've run ANALYZE on my table and have reindexed the index idx_own_spas on my primary server, but it hasn't helped. Here is the...
Read more >
PostgreSQL Running Slow? Tips & Tricks to Get to the Source
Get as much information as possible from whoever says the database seems slow; specific queries, applications connected, timeframes of the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found