pingcap / pingcap/tidb

Support parallel execution for aggregation with distinct

Open
#62,987 0 comments 0 reactions 0 assignees View on GitHub
sig/execution type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Currently, if an aggregation contains at least 1 agg function with distinct, TiDB will execute the aggregation using 1 threads, it is clearly not optimal for big data set, we should support parallel exectuion for aggregation with distinct, at least for `count(distinct)` which is widely used.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.