-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
too slow when application running,version:4.0.0-RC1 #2394
Comments
Hi, instead of loading the metadata from all of sharding tables and checking them, |
with RC1 , i find it load all table in the pointed db, which is not configured in "logic-tables=user,order,...". is there any way to optimize the problem? |
i had try this way. it`s not work. still go to get all table column metadata.
|
@tristaZero as you said, |
|
application run slowly when i use default-datasource-name
shardingsphere will load shardingContext and connect to db,why do this?
there is much tables and colums, when shardingsphere do it,it is slow
my configuration:
check.table.matedata.enable:false
slow function:
loadDefaultTables()
@SneakyThrows
public Map<String, TableMetaData> load(final ShardingRule shardingRule) {
Map<String, TableMetaData> result = new HashMap<>();
result.putAll(loadShardingTables(shardingRule));
result.putAll(loadDefaultTables(shardingRule));
return result;
}
this function is slow
The text was updated successfully, but these errors were encountered: