Skip to content

Conversation

@nave91
Copy link

@nave91 nave91 commented Jan 6, 2026

When we are swapping intermediate table -> main table, we need to:

  • Drop mirroring from main to intermediate partitioned table
  • Rename main table -> retired table
  • Rename intermediate partitioned table -> main table
  • Create mirroring from newly partitioned main table -> retired table

All the above should happen within a transaction. Unswap should do the opposite.

@nave91 nave91 requested a review from time-less-ness January 6, 2026 21:18
Copy link

@time-less-ness time-less-ness left a comment

Choose a reason for hiding this comment

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

All of this looks reasonable.

@nave91 nave91 merged commit 0e2e817 into master Jan 7, 2026
9 checks passed
@nave91 nave91 deleted the swap-drop-trigger branch January 7, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants