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/09/10 03:23:22 UTC

[GitHub] [incubator-shardingsphere] kofkyobsa opened a new issue #3012: By using sharding column , it's still full scan

kofkyobsa opened a new issue #3012: By using sharding column , it's still full scan
URL: https://github.com/apache/incubator-shardingsphere/issues/3012
 
 
   ### Which version of ShardingSphere did you use?
   3.1.0
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   Sharding-JDBC 
   ### Expected behavior
   SQL: select
       bu_id,trade_id, trade_no, parent_trade_id, out_trade_id, shop_id, supply_id,store_id, parent_shop_id,
       user_id,buyer_user_id, open_id, third_order_time, trade_type, trade_source, trade_status, pay_amount,
       hide, logistic_amount, logistic_pay_type,  trade_remark,
       shop_remark, clerk_name, clerk_phone, address_id, area_id, city_area_id, province_area_id, 
       delivery_name, delivery_phone, detail_address, customer_id, customer_id_card, customer_name, 
       customer_phone, tags, is_cart, end_time,pay_time,has_parent, is_deleted, creator, editor, create_time,
       edit_time,attribute, promotion_attr
       from    
        pt_trade_shop  where is_deleted=0 and bu_id=? and hide in (0,1)
       and parent_trade_id = ?
       and shop_id=?
       order by id desc;
   
   parms:  bu_id='0' ,parent_trade_id = '10000008496045', 
                 shop_id='35f8ddbb04ff4038b2efd633c3a0474c'
   
   sharding column : shop_id
   
   when i used spring+mybatis online, some how it's still do table full scan,
   but i can't debug online。
   so which condition could cause this bug?
   
   

----------------------------------------------------------------
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