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

Skip decoding of excluded table rows #831

Merged

Conversation

mcuelenaere
Copy link
Contributor

NOTE: this PR is untested atm, hence why it is a draft

This PR changes canal to skip decoding RowsEvent events for tables that it is not interested in (cfr IncludeTableRegex, ExcludeTableRegex).

The rationale for implementing this, is that we noticed that quite a bit of compute went to parsing JSON fields, even though we were not listening to any tables containing JSON fields. This PR should fix that.

@mcuelenaere mcuelenaere force-pushed the skip-decoding-excluded-table-rows branch from 651feae to c59e381 Compare October 12, 2023 15:13
@lance6716
Copy link
Collaborator

Hi, don't forget to change the PR state from draft to ready when you think it's OK

@mcuelenaere
Copy link
Contributor Author

Okay, after doing some brief testing this seems to work! I was unable to verify the DecompressMariadbData change however, as this was tested against MySQL 5.7 (but it should be safe)

@mcuelenaere mcuelenaere marked this pull request as ready for review October 16, 2023 10:05
Copy link
Collaborator

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

thanks!

@lance6716 lance6716 merged commit e598b6e into go-mysql-org:master Oct 17, 2023
13 checks passed
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