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

Readable stream #120

Open
apetitescure opened this issue Jun 19, 2023 · 2 comments
Open

Readable stream #120

apetitescure opened this issue Jun 19, 2023 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@apetitescure
Copy link

Hello,

is it possible to retrieve a whole document as a Readable stream ?
Would be great to fetch large document without keeping the whole payload in memory.

Thanks in advance

@apetitescure apetitescure added enhancement New feature or request question Further information is requested labels Jun 19, 2023
@atassis
Copy link
Collaborator

atassis commented Jun 25, 2023

Hi there. Haven't met such an issue, will try to look through the code and think about the case. Can you, please, describe, the case you are trying to solve? What do you store, how does the document look like?

@apetitescure
Copy link
Author

I'm running a simple http server, and I just wanna read a whole document from rethinkdb and send it directly to the client without loading the entire document in memory.

It is as if I would want to read a file from a file system and send it to a http client, so I would use createReadStream, but I would like to do this from rethinkdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants