Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sharding key updates #555

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

Merged
jaggederest merged 9 commits into main from feat/sharding_key_update
Oct 16, 2025
Merged

Sharding key updates #555

jaggederest merged 9 commits into main from feat/sharding_key_update
Oct 16, 2025

Conversation

Copy link
Contributor

@jaggederest jaggederest commented Oct 9, 2025

#541

This version just raises an error when sharding key updates are detected. Will add the actual rewriting shortly.

@jaggederest jaggederest marked this pull request as ready for review October 13, 2025 22:37
rows: usize,
two_pc: bool,
) -> Result<(), Error> {
let command = if rows == 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why the special handling of rows == 1 here?

Copy link
Contributor Author

@jaggederest jaggederest Oct 16, 2025

Choose a reason for hiding this comment

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

We don't support inserts with >1 row so I special cased it to throw a fit when rows > 1, since if we DELETED 10 for example, we can't INSERT ... in a sharded context basically. I will probably try to get multirow inserts to work next, I think that's a big blocker for sharding, but I think it needs a li'l refactor, all these special cases are getting complicated.

Copy link
Collaborator

@levkk levkk left a comment

Choose a reason for hiding this comment

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

Awesome!

image

@jaggederest jaggederest merged commit 5167249 into main Oct 16, 2025
7 checks passed
@jaggederest jaggederest deleted the feat/sharding_key_update branch October 16, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@levkk levkk levkk approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /