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/10/30 07:06:33 UTC

[GitHub] [incubator-shardingsphere] yu199195 opened a new issue #3406: When have a lot of data sources , CreateDataSource It's very slow....

yu199195 opened a new issue #3406: When have a lot of data sources ,CreateDataSource It's very slow....
URL: https://github.com/apache/incubator-shardingsphere/issues/3406
 
 
   Sharding-JDBC 3.0.0
   
   
   We are using version 3.0.0,Now we have 128 datasourcs, which are database and table。
   
   We found that as the number of data sources increased, our application started very slowly,
   
   The reason is this code :
   
   ShardingDataSourceFactory.createDataSource(dataSourceMap, shardingRuleConfig, shardingProperties.getConfigMap(), shardingProperties.getProps());
   
     private final Map<String, DataSource> dataSourceMap = new LinkedHashMap<>();
   
   this dataSourceMap  has 128.
   
   i want to know  createDataSource do what.?
   
   If there are many data sources, can we use multithreading to initialize them?
   
   can you help me other solutions?
   

----------------------------------------------------------------
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