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 04:01:03 UTC

[GitHub] [shardingsphere] mawer111 opened a new issue #5487: How default database sharding strategy work?

mawer111 opened a new issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487


   ## Question
   if not config table rule for tabe A , just set  default database sharding strategy, the default database strategy is work?
   
   my situation: every table sharding in some db, but only some of them sharding in different tables,Is it possible to set a default database sharing strategy for all table?
   
   at the last,Thanks for developer 
   
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response **more than 7 days** and we cannot reproduce it on current information, we will **close it**.
   


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



[GitHub] [shardingsphere] kimmking commented on issue #5487: How default database sharding strategy work?

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487#issuecomment-626116195


   DefaultDatasourceShardingStrategy is remove in master now.
   Under the design principles, each table that you need to control by shardingsphere,  should be configured in config files.
    


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



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

Posted by GitBox <gi...@apache.org>.
mawer111 commented on issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487#issuecomment-626118167


   get this.but in some situation, there are so many table here,maybe design some config to solve under the design principles.
   and i think the annotation meta code is a good way to solve config problem. 


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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
mawer111 commented 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,will create ShardingDefaultDatabaseRoutingEngine ,that's 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



[GitHub] [shardingsphere] terrymanu commented on issue #5487: How default database sharding strategy work?

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487#issuecomment-634135285


   @mawer111 Hi, could we close this issue?


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



[GitHub] [shardingsphere] mawer111 closed issue #5487: How default database sharding strategy work?

Posted by GitBox <gi...@apache.org>.
mawer111 closed issue #5487:
URL: https://github.com/apache/shardingsphere/issues/5487


   


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