Skip to content

[Enhancement] Enhancement of query profile: make enable_profile always true #33744

Description

@RoanHeNaN

Search before asking

  • I had searched in the issues and found no similar issues.

Description

We need to make global variable enable_profile always true.

Benefit:
profile of query that has bad performance can be seen directly without retry

To realize the goal, we need to refactor the current report profile mechanism, in which profile data is sent from BE to FE
during almost all the time the query is running, and profile resides in FE until there are too many profile, and this makes memory usage on FE explode.

Solution

The refactor process will be step by step:

  • when enable_profile is set true, query will only report profile after it is finished(current mechanism is still kept until we finished all the refactor process)
  • support real-time profile fetching
  • support profile persistent
  • remove old profile report code until we finished above

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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