Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27021

Extend SHOW EXPLAIN to support SHOW ANALYZE [FORMAT=JSON]

    XMLWordPrintable

Details

    Description

      SHOW EXPLAIN allows one to view EXPLAIN of a currently executing query.

      However, it doesn't handle this use case:

      A really huge query runs for a long time and never finishes. Since it never finishes, one cannot view ANALYZE output. Adding "LIMIT N" to the top query is of limited help.
      One can view the EXPLAIN, but the query has a lot of subqueries that have many-table joins. One can see multiple sub-optimal access methods, and it is not clear which of them are the ones that are causing the performance problem.

      Suggested solution: extend SHOW EXPLAIN to report SHOW ANALYZE FORMAT=JSON data of the query that's currently running.

      Attachments

        Issue Links

          Activity

            People

              alice Alice Sherepa
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.