Skip to content

Query statistics lock is consuming excessive CPU resources during the auto-analysis check #49472

@0xPoe

Description

@0xPoe

Enhancement

If you have a large number of tables, the auto-analyze worker can help you analyze them efficiently by checking if they need to be analyzed. However, during the analysis, we need to obtain the stats lock information. If a table is already locked, then there is no need to analyze it.
If your table is small, it needs to be checked frequently which can lead to excessive CPU resource consumption due to the querying of statistics lock.

img_v3_0062_98257775-ab90-4ea8-bbf9-64252d65b53g

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions