Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb 新建的索引迟迟无法生效 怎么办?着急在线等
[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots / Logs / Monitoring]
Please help, unable to create an index.
Enter the TiDB server of the cluster
Run the following commands on all TiDB servers:
service tidb stop
service tidb start
Please provide the result of admin show ddl jobs 50;
.
Useless~ Just wait patiently for the job to finish executing.
The large index is just slow, sometimes it takes me 12 hours.
Creating an index essentially involves organizing another data structure. The larger the amount of data, the more time it takes.
This is not a question post, it’s a demonstration post.
Disable DDL operations related to this table, or reduce read and write operations on the index fields to increase the speed of index creation. Also, check the disk space.
TiDB can create indexes concurrently now, right? Enable some concurrency.