[GitHub] [incubator-shardingsphere] zhuyaoming edited a comment on issue #3644: shardingvalue cannot Null ?

2019-12-05 Thread GitBox
zhuyaoming edited a comment on issue #3644: shardingvalue cannot Null ?
URL: 
https://github.com/apache/incubator-shardingsphere/issues/3644#issuecomment-562053413
 
 
   > Maybe we do not need talk about business logic here, we just make sure if 
we permit `null` for sharding value, which data node should the data inserted 
into?
   
   other sharding column(tenant_id,customer_id) can known data node.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-shardingsphere] zhuyaoming edited a comment on issue #3644: shardingvalue cannot Null ?

2019-12-04 Thread GitBox
zhuyaoming edited a comment on issue #3644: shardingvalue cannot Null ?
URL: 
https://github.com/apache/incubator-shardingsphere/issues/3644#issuecomment-561604376
 
 
   > Which data node should the data inserted into?
   
   i use ComplexShardingStrategy   , tenant_id and consumer_id can known data,  
   and  tenant_id + consumer_id correspond only id_number.  i save Map when 
insert have id_number.
   
   so i use tenant_id,consumer_id,id_number as sharding column, 
   if  where tenant_id=1 and consumer_id=*   sharding is ok
   
   if where id_number=*  
   
   first : find by map get tenant_id and consumer_id  second: cal databases
   
   that my questions.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services