wsm12138 commented on issue #17988:
URL:
https://github.com/apache/shardingsphere/issues/17988#issuecomment-1139239434
> It seems you use snowflake as primary key. And the length is longer than
int(11).
According to advice
change shardingColumn id to k
```
rules:
- !SHARDING
tables:
sbtest1:
actualDataNodes: ds_${0..3}.sbtest1_${0..9}
tableStrategy:
standard:
shardingColumn: k
shardingAlgorithmName: mod_ten
defaultDatabaseStrategy:
standard:
shardingColumn: k
shardingAlgorithmName: mod_four
shardingAlgorithms:
mod_four:
type: MOD
props:
sharding-count: 4
mod_ten:
type: MOD
props:
sharding-count: 10
```
--
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]