Is ANALYZE TABLE Safe on a Busy MySQL Database Server?
Percona
NOVEMBER 1, 2023
sec) However, we can still find a warning in the official documentation , even for the 8.1 version, like this: ANALYZE TABLE removes the table from the table definition cache, which requires a flush lock. This makes the query wait for any long-running queries to finish but also can trigger cascading waiting for other incoming requests.
Let's personalize your content