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/03/03 01:58:51 UTC

[GitHub] [incubator-shardingsphere] KomachiSion commented on issue #4478: Is this possible to just shard databases with table rule configuration?

KomachiSion commented on issue #4478: Is this possible to just shard databases with table rule configuration?
URL: https://github.com/apache/incubator-shardingsphere/issues/4478#issuecomment-593726260
 
 
   @bharathikannan-zarget , If you do not config tableRule, ShardingSphere can't know tables you input whether need to do shard or not.
   
   So you at least config logicTableName and actualDataNodes like 
   
   ```
   shardingRule:
     tables:
       t_order:
         actualDataNodes: ds_${0..1}.t_order
       t_order_item:
         actualDataNodes: ds_${0..1}.t_order_item
      ....
   ```
   
   And then you config your `defaultDatabaseStrategy` will be ok.
   

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