Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: analyze全采样导致写入阻塞
Version: 5.3.0
Is the analyze_full_sampling in the image for a single table or for all tables?
After analyze_full_sampling occurred, it caused a complete write block.
For all tables. This takes effect when tidb_analyze_version = 2
, and it is the request sent to TiKV when analyze v2 collects statistics. You can check the status of TiKV at that time.
In this situation, you can only stop business execution.
Insufficient machine performance
You can give it a try. In fact, a full table scan can be scheduled. You can set it to run at night.
Lesson 16 of this course: Statistics Management (Author: Wang Tianyi) covers this topic.
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.