Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

Non-blocking streaming with pg-query-stream #68

Open
spimou opened this issue Dec 18, 2019 · 0 comments
Open

Non-blocking streaming with pg-query-stream #68

spimou opened this issue Dec 18, 2019 · 0 comments

Comments

@spimou
Copy link

spimou commented Dec 18, 2019

I am using a node module to connect to an sql database, but when I do streaming, it gets the Node blocking by design. I cannot do a simple GET while its streaming. Streaming has to end, for new requests to work.

I am thinking about changing to PostgreSQL db and using pg-query-stream to stream.

Before I continue, I have to ask : is pg-query-stream non-blocking while streaming? Also does it give options to pause and resume the stream, in order to process data and not exhaust memory?

Thank you

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

No branches or pull requests

1 participant