You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@songxu Hi, recently i am fixing this problem, and this issue occurrs to me. ShardingSphere needs a copy of metadata info to help parsing your SQLs, and checks the metadata consistancy of all the sharding tables. But there is a switch named check.table.metadata.enabled to decide to check it or not. If you don't want to cost too much time when startup, you can config this property. More details, please refer to our document. Thanks.
Version
io.shardingsphere.sharding-jdbc-spring-boot-starter:3.0.0
During the initializing, shardingspere will load all table meta in TableMetaDataInitializer.
TableMetaDataInitializer.load(final ShardingRule shardingRule) {
...
result.putAll(loadDefaultTables(shardingRule));
}
It takes much time(almost 2 minutes) to load all meta data.
Question
Why shardingspere need to load all meta data? If I don't load them, what will happen?
Thanks a lot.
The text was updated successfully, but these errors were encountered: