[Bug] enable pipeline resulting in longer query time In situations where there are too many tablets (0.06s -> 19s)
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
tablets number: 15957 / 3 replica
difference when enable pipeline:
0.06s -> 19s
btw, in query profile, this query time as follow, different to mysql client. https://github.com/apache/doris/discussions/29024
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.
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
- [X] I agree to follow this project's Code of Conduct
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 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,