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 2019/06/11 10:39:19 UTC

[GitHub] [incubator-shardingsphere] zhang98722 commented on issue #1951: Optimization of table metadata initialization

zhang98722 commented on issue #1951: Optimization of table metadata initialization
URL: https://github.com/apache/incubator-shardingsphere/issues/1951#issuecomment-500786359
 
 
   i meet the same issue
   its cost too much time to load too many default tables like 5000+
   i just make the initializer skipped load the default table meta data by only create new 
   dont know what would happen
   and the switch **check.table.metadata.enabled** cant solve this issue
   
   
   ```
       public TableMetaData load(final String logicTableName, final ShardingRule shardingRule) throws SQLException {
           if(!isCheckingMetaData){
               return new TableMetaData(new ArrayList<ColumnMetaData>());
           }
           List<TableMetaData> actualTableMetaDataList = load(getDataNodeGroups(logicTableName, shardingRule), shardingRule.getShardingDataSourceNames());
           checkUniformed(logicTableName, actualTableMetaDataList);
           return actualTableMetaDataList.iterator().next();
       }
   ```
   
   @tristaZero 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services