wangjiihao commented on issue #21482:
URL:
https://github.com/apache/shardingsphere/issues/21482#issuecomment-1274166482
# 分片的配置
rules:
sharding:
# 表的分片策略
tables:
# 逻辑表的名称
asset_terminal_basic_seq:
# 数据节点配置,采用Groovy表达式
actual-data-nodes: master.asset_terminal_basic_seq$->{0..4}
#分表策略
table-strategy:
standard:
# 分片列名称
sharding-column: id
sharding-algorithm-name: alg-hash-mod
#分片算法配置
sharding-algorithms:
# 哈希取模分片算法
alg-hash-mod:
# 分片算法类型
type: HASH_MOD
# 分片算法属性配置
props:
sharding-count: '5'
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]