pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.69k stars 5.78k forks source link

Slow log query's parse concurrency is not stable #54522

Open yibin87 opened 3 weeks ago

yibin87 commented 3 weeks ago

Enhancement

There are two types of concurency for parsing slow query log, decided by whether Desc attribute is true: https://github.com/pingcap/tidb/blob/d8098b970893c850cc318727d9dc336d0a677f35/pkg/executor/slow_query.go#L451-L455

yibin87 commented 3 weeks ago

/assign @yibin87