-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Cursors, Performance
-
Not Needed
Use Case
As a Node.js driver user performing toArray calls on my cursors
I want the execution time to be as quick as possible
So that I can achieve greater performance heights with the driver
User Impact
- cursor.toArray should take less time.
Dependencies
- BSON, on-demand BSON calls.
Unknowns
- Can we improve performance with this change?
Acceptance Criteria
Implementation Requirements
- Investigate the impact of adding an API that serializes an entire batch in one call to BSON.deserialize.
- This should avoid many calls to OnDemandDocument.get() / CursorResponse.shift()
- port toArray to use this on demand API
Testing Requirements
- Ensure benchmark coverage exists in advance of this work.
Documentation Requirements
- None.
Follow Up Requirements
- None.
- is related to
-
NODE-6295 More than 2x perf regression for cursor iteration in 6.8.0
- Closed