Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed slow performance due to releasing client from the pool always w… #25

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

aformusatii
Copy link
Contributor

On my AT5IONT-I a simple query like SELECT 1 via this node took ~300 - 700 ms. For comparation mysql node was ~4 - 10 ms. If client release is called with true value then it will be destroyed, effectively the pool is not used.

https://node-postgres.com/api/pool#release-err-error

@Alkarex Alkarex merged commit 23af6f6 into alexandrainst:main Jun 21, 2022
@Alkarex
Copy link
Member

Alkarex commented Jun 21, 2022

Thanks! Well spotted 👍🏻

@Alkarex
Copy link
Member

Alkarex commented Jun 21, 2022

New version published https://flows.nodered.org/node/node-red-contrib-postgresql 🚀

(Watch out, npm has issues https://status.npmjs.org/incidents/8cgldky16yk4 at the moment, apparently due to Cloudflare https://www.cloudflarestatus.com/incidents/xvs51y9qs9dj )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants