Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
part of sharding key in multiple sharding strategy can not null #3644
table have column id, id_number,caseno,tenant_id,customer_id,sex,name .....
i use ComplexShardingStrategy , tenant_id and consumer_id can known data,
so i use tenant_id,consumer_id,id_number as sharding column,
if where id_number=*
first : find by map get tenant_id and consumer_id second: cal databases
that my questions.
Hi @zhuyaoming, in my opinion, The sharding column in ShardingSphere is similar to the primary key, which should can locate the DataNode accurately.