You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when do query contains multiple and conditions in where , just like select count(1) from test_tbl where cast(b as string) != '' and a = 1, we can simply move the equals conditions ahead to improve the performance, the sql can be executed as select count(1) from test_tbl where a = 1 and cast(b as string) != '', below it is the performance comparsion of the two sql
The text was updated successfully, but these errors were encountered:
Description
when do query contains multiple
and
conditions in where , just likeselect count(1) from test_tbl where cast(b as string) != '' and a = 1
, we can simply move the equals conditions ahead to improve the performance, the sql can be executed asselect count(1) from test_tbl where a = 1 and cast(b as string) != ''
, below it is the performance comparsion of the two sqlThe text was updated successfully, but these errors were encountered: