Skip to content

Recommend Index statements may be slow and can't be killed #64345

@time-and-fate

Description

@time-and-fate

Enhancement

In a Recommend Index statement, for all related DBs in the queries, it will fetch all the table metadata in those DBs. When there are a lot of queries (1000 by default) or the user has lots of tables, this process costs many resources and time, especially with infoschema v2 now.

Image

What's worse, during this process, there is no checkpoint for the timeout option or kill signal, so the user is not able to kill it, and the timeout option is also ineffective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.5This bug affects the 8.5.x(LTS) versions.report/customerCustomers have encountered this bug.sig/plannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions