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

feat(NODE-6337): implement client bulk write batching #4242

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

durran
Copy link
Member

@durran durran commented Sep 19, 2024

Description

What is changing?

Is there new documentation needed for these changes?

What is the motivation for this change?

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

* @returns The section bytes.
*/
toBin(): Uint8Array {
// TODO: What to do if no documents?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing, right? We should probably check but I'd assume that the server would deserialize an OP_MSG with a document sequence that has no documents as an empty array.

Copy link
Member Author

@durran durran Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My todo here is that if there are no documents currently the 4 byte length in the header isn't set yet, was a reminder for myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants