Conversation
🦋 Changeset detectedLatest commit: 45848cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
simolus3
left a comment
There was a problem hiding this comment.
For my understanding, we have to increase batchSize by one because we're using a lower-level API that sidesteps the client driver logic in operations/find.ts?
I didn't check whether there are any batchSize uses left we may have to migrate, but since this doesn't affect correctness it looks good to me.
|
The change is not actually required. The new driver version implements that same change automatically - basically |
This includes some minor performance and stability improvements from the MongoDB driver:
resumeTokeninChangeStream.tryNext()mongodb/node-mongodb-native#4636). We implemented a workaround in [MongoDB Replication] Fix resumeTokens going back in time on busy change streams #301, but the workaround could still result in replication delays when the bug was hit. This fixes it properly.minPoolSize: 0)