sharding-jdbc-test

yufeng e479e17e18 策略修改及调试 3 years ago
src e479e17e18 策略修改及调试 3 years ago
.gitignore d71ab8bb1d init 3 years ago
README.md 9b02441d58 修改包名 3 years ago
pom.xml d71ab8bb1d init 3 years ago

README.md

sharding-jdbc-test

sharding-jdbc-test

order分片规则

  1. order_code 取余
  2. gmt_create 按年分

order_item分片规则同order

绑定表 sharding.jdbc.config.sharding.binding-tables[0]

可以使两个表join不需要进行笛卡尔积

详细配置

http://shardingsphere.io/document/current/cn/manual/sharding-jdbc/configuration/config-spring-boot/