You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
steps:
step1. update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999;
usr_id 被 ` 符号引用
expect result:
1.命中路由
explain update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999 \G
SHARDING_NODE: dn13
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999
real result:
广播了
explain update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999 \G
*************************** 1. row ***************************
SHARDING_NODE: dn1
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999
*************************** 2. row ***************************
................................省略dn2-dn17
................................
*************************** 18. row ***************************
SHARDING_NODE: dn18
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where usr_id=9999999 and ID=999999999
supplements:
1.
The text was updated successfully, but these errors were encountered:
usr_id为分片键
schema.xml
rule.xml
server.xml
step1. update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=999999999;usr_id 被 ` 符号引用
1.命中路由
explain update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=999999999 \GSHARDING_NODE: dn13
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=999999999explain update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=999999999 \G*************************** 1. row ***************************
SHARDING_NODE: dn1
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=999999999*************************** 2. row ***************************
................................省略dn2-dn17
................................
*************************** 18. row ***************************
SHARDING_NODE: dn18
TYPE: BASE SQL
SQL/REF: update t18_order set ord_sts='9X' where
usr_id
=9999999 andID
=9999999991.
The text was updated successfully, but these errors were encountered: