You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zt9788 (via GitHub)" <gi...@apache.org> on 2023/04/11 06:29:52 UTC
[GitHub] [shardingsphere] zt9788 commented on issue #25095: JDBC datasource and table sharded by one column will route ERROR
zt9788 commented on issue #25095:
URL: https://github.com/apache/shardingsphere/issues/25095#issuecomment-1502753572
> Your expression in `db-demo_table` is `demotable_${id % 64}`, maybe what you want is `demotable_${id % 2 % 64}`?
No
for example id = 100
the will save the data in `DS0.demotable_36 `
id = 101 `DS1.demotable_37`
It is `DS${id%2}.demotable_${id%64}`
--
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