dmanjunath / node-redshift

A simple collection of tools to help you get started with Amazon Redshift from node.js
69 stars 48 forks source link

Fix connection pooling #10

Closed schmidp closed 7 years ago

schmidp commented 7 years ago

With Postgres connection pooling your are supposed to request a client each time you run a query instead of storing the client and reusing it.

Without these changes, the library would stop working after about 30 seconds... (connection terminated).

dmanjunath commented 7 years ago

@schmidp Thanks for the PR! Merged onto master. I'll do a npm publish with these as well