yjjqrqqq removed a comment on issue #1930: Initiating datasource too slow when 
defaultDataSource has big amount of tables
URL: 
https://github.com/apache/incubator-shardingsphere/issues/1930#issuecomment-529199506
 
 
   Finally, I reloved like this.
   I copy TableMetaDataInitializer.java to my own project,, and remove 
   `    private Map<String, TableMetaData> loadDefaultTables(final ShardingRule 
shardingRule) throws SQLException {
           Map<String, TableMetaData> result = new 
HashMap<>(shardingRule.getTableRules().size(), 1);
           return result;
           /*Optional<String> actualDefaultDataSourceName = 
shardingRule.findActualDefaultDataSourceName();
           if (actualDefaultDataSourceName.isPresent()) {
               for (String each : 
getAllTableNames(actualDefaultDataSourceName.get())) {
                   result.put(each, tableMetaDataLoader.load(each, 
shardingRule));
               }
           }
           return result;*/
       }`
   
   I will continue test~~~

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to