Skip to content

Conversation

rkistner
Copy link
Contributor

Builds on #121.

The current_data bucket storage collection stores the following data:

  • buckets: The current set of buckets for each replicated row
  • lookups: Current parameter query lookups for each replicated row
  • data: A copy of the current data

Buckets and lookups are used to be able to do REMOVE operations (need to know in which buckets a row was before, so we know from which buckets we need to remove it from after an update).

The data bit is to support partial updates. For Postgres, this could be when we receive an update with unchanged TOAST columns. However, for MongoDB we get the full document on each update, so never need that. This adds an optimization for MongoDB to skip that persistence.

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2024

⚠️ No Changeset found

Latest commit: 0db1a98

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@rkistner rkistner marked this pull request as ready for review November 13, 2024 12:04
Base automatically changed from mongodb-postimages to feat/modular-replication-architecture November 13, 2024 12:11
@rkistner rkistner requested a review from Rentacookie November 13, 2024 12:50
@rkistner rkistner merged commit 62d8f3c into feat/modular-replication-architecture Nov 13, 2024
15 checks passed
@rkistner rkistner deleted the mongodb-skip-currentdata branch November 13, 2024 13:23
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