whatsgh opened a new issue #5509: URL: https://github.com/apache/incubator-doris/issues/5509
doris 版本0.13 表结构:  base 表一天差不多1亿左右数据,rollup表聚合后是一天1万条左右 分区字段是dayStr,分桶字段是channel、pageId,分桶数是10 问题:命中相同的rollup表,用bitmap聚合的时间是不用bitmap聚合的50-100倍左右。不清楚哪块的问题造成bitmap性能这么差 以下是bitmap聚合查询sql和耗时: select dayStr dt,hourStr hour,channel,pageId,eventId,sum(pv) pv,bitmap_count(bitmap_union(uv)) uv from aggr_user_action_event_rt_v2 where dayStr=20210312 and hourStr=9 and channel != '-' group by dayStr, hourStr, channel, pageId, eventId;  以下是不加bitmap聚合查询sql和耗时: select dayStr dt,hourStr hour,channel,pageId,eventId,sum(pv) pv from aggr_user_action_event_rt_v2 where dayStr=20210312 and hourStr=9 and channel != '-' group by dayStr, hourStr, channel, pageId, eventId;  ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org