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
CREATETABLEsharding_table (
id BIGINTPRIMARY KEY AUTO_INCREMENT,
clientNum CHAR(20) NOT NULL )
Records are distributed inequally on dataNodes( physical tables ). Thus, AUTO_INCREMENT is different between physical tables in the result of SHOW CREATE TABLE.
-- Execute belows on dble 8066 AFTER dble and dble are readyINSERT INTOtestdb.sharding_tableVALUES
('00000000000000000001'),
('00000000000000000002'),
('00000000000000000003');
to @Lordess :
In your case, column id must NOT config as primaryKey in table's attribute of schema.xml, else it will cache a single datanode as routing result
dble version:
2.18.10.1 release
preconditions :
schema.xml
rule.xml
server.xml
ommitted
step1. Issue a RELOAD command to dble on 9066.
Why I use auto-increment in a sharding table:
/label ~BUG
The text was updated successfully, but these errors were encountered: