childewuque commented on issue #10938:
URL: 
https://github.com/apache/shardingsphere/issues/10938#issuecomment-988531945


   @tuichenchuxin @strongduanmu 
   I now use v5.0.0, and I find that the range of excluded tables is smaller 
than v5.0.0-beta, v5.0.0 only excludes getAllActualTables
   Therefore, 5.0.0 initialized more tables metadata and the project started 
more slowly
   In a database with many tables, only one table is used for sharding, and the 
other tables are not used by shardingsphere at all. How can the project be 
started more quickly?
   
   Thanks.
   
   SingleTableRule class:
       private Collection<String> getExcludedTables(final 
Collection<ShardingSphereRule> rules) {
           return rules.stream().filter(each -> each instanceof 
DataNodeContainedRule).flatMap(each -> ((DataNodeContainedRule) 
each).getAllTables().stream()).collect(Collectors.toSet());
       }
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to