Skip to content

Commit

Permalink
Merge branch 'master' into revise_capture
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 authored Dec 26, 2022
2 parents 7519bdf + 8a4b31a commit a373b83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/copr/coprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ func (c *CopClient) BuildCopIterator(ctx context.Context, req *kv.Request, vars
// higher concurrency, the data is just cached and not consumed for a while, this increase the memory usage.
// Set concurrency to 2 can reduce the memory usage and I've tested that it does not necessarily
// decrease the performance.
if it.concurrency > 2 {
// For ReqTypeAnalyze, we keep its concurrency to avoid slow analyze(see https://github.com/pingcap/tidb/issues/40162 for details).
if it.concurrency > 2 && it.req.Tp != kv.ReqTypeAnalyze {
oldConcurrency := it.concurrency
it.concurrency = 2

Expand Down

0 comments on commit a373b83

Please sign in to comment.