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

Use full documentKey from Mongo Change Event as query filter #63

Merged
merged 2 commits into from
Mar 10, 2024

Conversation

pitagoras3
Copy link
Collaborator

What?

In this PR I've changed query filter from single "_id" filter to full documentKey from Mongo Change Event.

Why?

In sharded databases to perform upsert, you need to provide full shard key in the upsert operation filter. Currently, migrator was only providing "_id" in the filter.

@pitagoras3 pitagoras3 merged commit 32ee3fb into main Mar 10, 2024
3 checks passed
@pitagoras3 pitagoras3 deleted the fix-id-filter branch March 10, 2024 16:00
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