big-mountain-z commented on issue #5284:
URL: https://github.com/apache/shardingsphere/issues/5284#issuecomment-645339831
> @big-mountain-z Hi sorry to feedback so late.
> Currently, you can decide database-sharding and table-sharding by
configuring `tableStrategy` and `databaseStrategy` together, like,
>
> ```yaml
> shardingRule:
> tables:
> t_order:
> actualDataNodes: ds${0..1}.t_order${0..1}
> databaseStrategy:
> inline:
> shardingColumn: user_id
> algorithmExpression: ds${user_id % 2}
> tableStrategy:
> inline:
> shardingColumn: order_id
> algorithmExpression: t_order${order_id % 2}
> keyGenerateStrategy:
> type: SNOWFLAKE
> column: order_id
> ```
>
> **So I am not sure I got your point?**
That's all right. It sounds great! I will make a try in future. BTW, this
feature may first appear in 5.0.0?
----------------------------------------------------------------
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]