You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "leonardBang (via GitHub)" <gi...@apache.org> on 2026/08/10 07:10:12 UTC

Re: [PR] [FLINK-39824][mysql] Cache table filter results to reduce regex matching [flink-cdc]

leonardBang commented on code in PR #4422:
URL: https://github.com/apache/flink-cdc/pull/4422#discussion_r3747336022


##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/source/config/MySqlSourceConfig.java:
##########
@@ -284,6 +286,31 @@ public Predicate<TableId> getTableFilter() {
         return tableId -> tableFilters.dataCollectionFilter().isIncluded(tableId);
     }
 
+    static Tables.TableFilter createCachedTableFilter(

Review Comment:
   Could we introduce `tableFilterCache` in `org.apache.flink.cdc.connectors.mysql.schema.Selectors`? Thus other places who call `Selectors` can benefit as well ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org