doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] enable pipeline resulting in longer query time In situations where there are too many tablets (0.06s -> 19s)

Open DA1OOO opened this issue 2 years ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

Doris 2.3

What's Wrong?

table size: 8MB, 9k+ rows, partitioned by hour, buckets num = 9 image tablets number: 15957 / 3 replica image difference when enable pipeline: 0.06s -> 19s image btw, in query profile, this query time as follow, different to mysql client. https://github.com/apache/doris/discussions/29024 image

Finally, explain the reason why we have so many tablets: we have a table. size = 25GB, rowCount = 302965685, due to business continuity, we partition by hour. then, we create a simple materialized view create materialized view as select geo_country from xxx group by geo_country. after created, found that tablets has doubled. but materialized view size is small. when we select on materialized view, the query is very slow. image so we create a test table (as above) that only have 1 column, partitions by hour to test query time. Then we discovered the problem mentioned at the beginning of the issue.

What You Expected?

fix, we want enable pipeline to use workload group function.

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

DA1OOO avatar Dec 26 '23 03:12 DA1OOO

Perhaps due to the Query Profile, after turning off the profile, the query speed is basically the same when opening and closing the pipeline.

DA1OOO avatar Dec 26 '23 06:12 DA1OOO

@DA1OOO Yes, it is the profile. Currently, profile will too long time to generate. If you set enable_profile=true, then the query time maybe very long. In doris 2.2. version, we will construct async profile to solve the problem,

yiguolei avatar Dec 30 '23 15:12 yiguolei