Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.8.0
-
None
-
None
-
None
Description
select * from xxx x join yyy y on x.col1=y.col1 where x.col1='1'
select * from xxx x join yyy y on x.col1=y.col1 where y.col1='1'
the column "col1" is the primary key for table "xxx" and table "yyy"
the above SQL do full scan over either table "xxx" or "yyy". if the join compiler take where clause into account, this can be optimized.