Adding RowsPerData to queryStream
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I currently testing using the queryStream-Method to handle large data from our Database.
Because you set every row on the data-Event of the stream this is extremely slow and unusable. I wonder why this isn't a parameter. All node-Stream-Functions allow you to definie sizes of buffer.
I would suggest to add a paramter like:
queryStream(String sql, [Object bindParams], [Object options], [Number RowsPerData]);
Contributor guide
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
Start at the queryStream entry point and trace how database rows are delivered through the stream's data events. Compare the proposed RowsPerData option with the existing queryStream signature and Node.js stream buffering behavior; the work is done when row delivery can be configured in groups for large queries and the resulting behavior is covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100