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

DBZ-8354 Fix table filter logic for vstream #213

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

twthorn
Copy link
Contributor

@twthorn twthorn commented Oct 31, 2024

The previous code had custom regex filtering which meant it would match all tables with suffixes for the table filter (eg filter is keyspace.table1 and would also match keyspace.table1_suffix1, keyspace.table1_suffix2, keyspace.table1_suffix3). These events would later be filtered out with the call to emit data change event which uses the Debezium Filters construct correctly (it only matches the full table name). This means there could be lots of unnecessary events being requested & deserialized from the vstream. This PR removes this custom regex logic and instead use the Debezium Filters to determine which tables to filter fixing this edge case.

This should significantly help with CPU & performance (and cost savings) for keyspaces that have many tables that have the same prefix and different suffixes.

@jpechane jpechane merged commit 17c8ff5 into debezium:main Nov 1, 2024
4 checks passed
@jpechane
Copy link
Contributor

jpechane commented Nov 1, 2024

@twthorn Applied, thanks!

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