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 2020/06/04 09:12:43 UTC

[GitHub] [shardingsphere] BruceZhangXL commented on issue #3366: Sharding-jdbc execute sql, in(x,x,x) performance issues

BruceZhangXL commented on issue #3366:
URL: https://github.com/apache/shardingsphere/issues/3366#issuecomment-638724663


   > In my recent tests, sharding-jdbc will optimize datanode number but do not cut the values in ‘in clause’.
   > 
   > For example, actual tables is test0...3, and condition is id % 4, when executing sql:
   > 
   > > select * from test where id in (100,101)
   > 
   > Actual sqls are:
   > 
   > > select * from test00 where id in (100,101)
   > > select * from test01 where id in (100,101)
   > 
   > Table data nodes are cut from 4 to 2 now.
   
   which version?


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