You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/12/08 06:16:57 UTC

[GitHub] [shardingsphere] childewuque commented on issue #10938: about init metadata of tables

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: notifications-unsubscribe@shardingsphere.apache.org

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