Skip to content

[feature wanted]现在Doris的union all好像是会集中到一台机器上进行计算,导致效率不高 #4656

@li-ang-666

Description

@li-ang-666

Doris版本:0.12.21

我有 N 个小SQL,每个SQL执行0.6秒左右

然后这N个SQL ,union all到一起,做一个group by,随着N的增大,从profile上来看,unionn_node的某个exchange_node的执行时间会越来越长

当N为20时,执行时间是24秒,最慢的这个exchange_node的activeTime与FirstBatchArrivalWaitTime均为23秒

通过询问dev,得出的结论可能是cpu切不过来了

是不是可以优化一下union all的代码逻辑,使其不要一次性发往一个节点?

还有一个想法,就是:我们集群目前是16核的CPU,是不是可以通过增加核心数,来提升当前union all逻辑下的性能?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions