Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb新增索引对表大小有限制吗

How long does it take to add an index to 18 million records?
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb新增索引对表大小有限制吗
How long does it take to add an index to 18 million records?
The image you uploaded cannot be processed for translation. Please provide the text content directly for translation.
It depends on the version. After version 6, the speed of adding indexes has increased significantly.
Which version? If it’s 6.5 or above, it will be very fast.
TiDB supports online DDL, adding indexes does not affect the business.
It depends on the version. Higher versions do not have explicit limitations.
A single-field index takes about 2 minutes, but the time may vary depending on the performance of each server.
Tested on TIDB 6.5.3, the speed is very fast, around 2 to 3 minutes.
The new version is very fast, estimated to take three to four minutes.
Based on the machine’s performance, I estimate a few minutes.