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 2020/05/09 06:08:37 UTC

[GitHub] [shardingsphere] mawer111 edited a comment on issue #5487: How default database sharding strategy work?

mawer111 edited a comment on issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487#issuecomment-626112750


   after read source code,I know DefaultDatasourceShardingStrategy wouldn't work without config table sharding rule
   If table a isnt config with a sharding rule,
   if config one defaultDatasource name,it will route by SharedingDefaultDatabaseRouting Engine
   otherwires,will route by ShardingUnicastRoutingEngine , in ShardingRouteEngineFactory
   ShardingUnicastRoutingEngine will route  to a random datasource in datasource names 
   
   
   


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