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 2021/09/27 01:33:38 UTC
[GitHub] [shardingsphere] CrackerSuperior commented on issue #12754: How does autotable recognize the use of sharding algorithms?
CrackerSuperior commented on issue #12754:
URL: https://github.com/apache/shardingsphere/issues/12754#issuecomment-927436244
> @CrackerSuperior Hi, please refer here: https://mp.weixin.qq.com/s/fDYqW-yJIVpkcUDNT-gsuA.
``` yaml
autoTables:
t_order:
# 指定使用的数据源
actualDataSources: ds_${0..7}
shardingStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: mod
shardingAlgorithms:
mod:
type: MOD
props:
# 指定分片数量
sharding-count: 32
```
The example in the article also has "shardingAlgorithmName:mod" to refer to the "shardingAlgorithm" of "mod", but the above example does not seem to have this
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org