Return stream or iterator from query
Nobody has claimed this yet.
- Dominant language
- Gleam
- Stars
- 264
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Is there any kind of support for returning a stream/iterator or similar? The use case would be for when you need to return very large datasets from the DB, and being able to start processing it without loading everything on memory.
As an example, this is available in node.js for this purpose: https://www.npmjs.com/package/pg-query-stream
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the existing query API and PostgreSQL client behavior before deciding how a stream or iterator should be exposed. Compare the requested behavior with the linked pg-query-stream example, and consider the work complete when callers can process very large result sets incrementally without loading the full dataset into memory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100