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

[cdc] don't cache replident during cdc #2140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

heavycrystal
Copy link
Contributor

@heavycrystal heavycrystal commented Oct 15, 2024

replident can be changed anytime, caching during CDC shouldn't be done
since we store TableSchema in catalog not removing is_replica_identity_full for now

@@ -167,6 +167,8 @@ message CreateRawTableOutput { string table_identifier = 1; }
message TableSchema {
string table_identifier = 1;
repeated string primary_key_columns = 2;
// only used during SetupFlow, CDC fetches it everytime
// TODO: rename at some point
Copy link
Contributor

@serprex serprex Oct 16, 2024

Choose a reason for hiding this comment

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

can this be cleared out as migration so in future it can be removed? Could otherwise mark deprecated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

prefer not to remove it because I want entirety of SetupFlow to use the same value
want to just rename it to make sure it's not used elsewhere

Copy link
Contributor

Choose a reason for hiding this comment

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

Can create model

type SetupTableSchema {
  *protos.TableSchema
  ...rest
}

& pass that around instead of the proto

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