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/10/14 06:04:39 UTC

[GitHub] [shardingsphere] fengshantao opened a new issue #7786: If i want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’

fengshantao opened a new issue #7786:
URL: https://github.com/apache/shardingsphere/issues/7786


   If i  want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’ without setting tables。
   
   ```shardingRule:
     tables:
        t_order:
          actualDataNodes: ds${0..1}.t_order
   
     defaultDatabaseStrategy:
       inline:
         shardingColumn: tenet_id
         algorithmExpression: ds${tenet_id}
   ```
   
   I tried,but it did not work right
   
    


----------------------------------------------------------------
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 #7786: If i want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’

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


   `
   shardingRule:
     tables:
        t_order:
          actualDataNodes: ds${0..1}.t_order
          tableStrategy:
            standard:
              shardingColumn: tenet_id
              algorithmExpression: t_order
     defaultDatabaseStrategy:
       inline:
         shardingColumn: tenet_id
         algorithmExpression: ds${tenet_id}
   
   `
   
   


----------------------------------------------------------------
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 closed issue #7786: If i want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’

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


   


----------------------------------------------------------------
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 edited a comment on issue #7786: If i want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #7786:
URL: https://github.com/apache/shardingsphere/issues/7786#issuecomment-708971869


   ```
   shardingRule:
     tables:
        t_order:
          actualDataNodes: ds${0..1}.t_order
          tableStrategy:
            inline:
              shardingColumn: tenet_id
              algorithmExpression: t_order
     defaultDatabaseStrategy:
       inline:
         shardingColumn: tenet_id
         algorithmExpression: ds${tenet_id}
   
   ```
   
   


----------------------------------------------------------------
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 edited a comment on issue #7786: If i want database sharding only,not tables。can I only set ‘defaultDatabaseStrategy’

Posted by GitBox <gi...@apache.org>.
kimmking edited a comment on issue #7786:
URL: https://github.com/apache/shardingsphere/issues/7786#issuecomment-708971869


   ```
   shardingRule:
     tables:
        t_order:
          actualDataNodes: ds${0..1}.t_order
          tableStrategy:
            standard:
              shardingColumn: tenet_id
              algorithmExpression: t_order
     defaultDatabaseStrategy:
       inline:
         shardingColumn: tenet_id
         algorithmExpression: ds${tenet_id}
   
   ```
   
   


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