You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/06/11 06:59:12 UTC

[GitHub] [incubator-shardingsphere-example] mgp1030 opened a new issue #146: How to support StandardSharding and HintSharding at the same time

mgp1030 opened a new issue #146: How to support StandardSharding and HintSharding at the same time
URL: https://github.com/apache/incubator-shardingsphere-example/issues/146
 
 
   
   sharding-core 3.1, Source code in StandardRoutingEngine, the method isRoutingByHint()  is :
   
       private boolean isRoutingByHint(final TableRule tableRule) {
           return shardingRule.getDatabaseShardingStrategy(tableRule) instanceof 
                HintShardingStrategy && shardingRule.getTableShardingStrategy(tableRule) instanceof 
                HintShardingStrategy;
       }
       
   
   But  ,  How to support StandardSharding and HintSharding at the same time?
   
   sharding-key is  ord_no  , for example:
   
   1, select * from t_order where ord_no = ? ; // use StandardSharding.
   
   2, select * from t_order where cust_no= ? ; // I want to use HintSharding. But , I can't do it.
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services