Skip to content

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Apr 17, 2024

Description

What is changing?

  • Implement a CursorResponse subclass of MongoDBResponse
    • Implements logic to abstract List vs CursorResponse handling
  • Make FindCursors use CursorResponse
Is there new documentation needed for these changes?

TBD. Is this something we want to apply to all cursors? Should we progressively migrate to this?

What is the motivation for this change?

An attempt at increasing performance. A sucessful decoupling of driver BSON and user BSON settings.

Only for FindCursor, BSON documents from the current batch are now parsed on each iteration.

One clear improvement is that any cursor that is closed before exhaustion will take significantly less run time.

Release Highlight

Fill in title or leave empty for no highlight

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken force-pushed the chore-cursor-v2-final branch 2 times, most recently from 98a105b to a537db1 Compare April 18, 2024 19:42
@nbbeeken nbbeeken marked this pull request as ready for review April 19, 2024 18:01
@baileympearson baileympearson self-assigned this Apr 19, 2024
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Apr 19, 2024
@nbbeeken nbbeeken force-pushed the chore-cursor-v2-final branch from 70df234 to ca88168 Compare April 25, 2024 17:22
@nbbeeken nbbeeken requested a review from baileympearson April 29, 2024 18:32
@baileympearson baileympearson added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels May 1, 2024
@baileympearson baileympearson merged commit 9d73f45 into main May 1, 2024
@baileympearson baileympearson deleted the chore-cursor-v2-final branch May 1, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants