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-593881555
 
 
   @menghaoranss's solution is ok
   
   ```
   shardingRule:
     tables:
       account:
         actualDataNodes: ds_${0..2}.account
       user:
         actualDataNodes: ds_${0..2}.user
       ....
   
     defaultDatabaseStrategy:
       inline:
           shardingColumn: tenant_id
           algorithmExpression: ds_${tenant_id / 100}
     defaultTableStrategy:
       none:
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to