相似sql查询时间差距大 #6571
Unanswered
1240288959
asked this question in
A - General / Q&A
相似sql查询时间差距大
#6571
Replies: 1 comment
-
|
通过设置 is_report_success=true 获取到实际的各个算子的执行时间,具体方式参见:http://doris.apache.org/master/zh-CN/administrator-guide/running-profile.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
sql A:
SELECT BITMAP_UNION_COUNT(CASE WHEN flag = 1 THEN field_id END) AS cnt FROM tableAsql B:
SELECT BITMAP_UNION_COUNT(field_id) AS cnt FROM tableA where flag = 1tableA表对field_id做了预聚合,使用explain的使用,看两个Sql都是使用了预聚合
进行查询sqlA的执行时间是sqlB的6倍,求告知sqlA执行慢的原因
Beta Was this translation helpful? Give feedback.
All reactions