You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of TiDB are you using (tidb-server -V)?
Git Commit Hash: e94996a
UTC Build Time: 2017-07-28 10:41:27
The text was updated successfully, but these errors were encountered:
blacktear23
changed the title
Aggregation with sort and limit is not push down to TiKV
Aggregation with sort and limit is not push down sort and limit parameter to TiKV
Jul 28, 2017
We will support StreamAggregation to keep the pipeline running when the group by key is also an index key. It will be a great progress when agg meets a limit operator. @zimulala will do this work next month. please keep patient.
Please answer these questions before submitting your issue. Thanks!
Execute a SQL with aggregation, sort and limit got a plan not efficient.
Table structure:
Execute SQL:
If indextest has more than 10000000 distinct name so the plan will execute like:
step 1 will cause TiKV send huge data to TiDB, but actually we just need first 10 records.
The TableScan plan should include sort and limit like SELECT statements.
Execution Plan
tidb-server -V
)?Git Commit Hash: e94996a
UTC Build Time: 2017-07-28 10:41:27
The text was updated successfully, but these errors were encountered: