Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: lightning导入数据如何控制速度
How to control the concurrent SQL when importing data with lightning using backend = “tidb”?
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: lightning导入数据如何控制速度
How to control the concurrent SQL when importing data with lightning using backend = “tidb”?
The parameter for controlling concurrency in logical import is region-concurrency.
The region-concurrency
parameter indeed controls concurrency, but more importantly, it is inherently related to memory. By default, each thread allocates 2GB of memory, so the value of region-concurrency
multiplied by 2GB should ideally be controlled below 70% of the available memory on the server. This can effectively prevent OOM (Out of Memory) issues.
There should be no direct parameters for SQL concurrency control.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.