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

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

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

            Transition Time In Source Status Execution Times
            Sergei Krivonos (Inactive) made transition -
            Open In Progress
            4d 5h 53m 1
            Sergei Krivonos (Inactive) made transition -
            In Progress Stalled
            20h 17m 1
            Oleg Smirnov made transition -
            Stalled In Progress
            56d 21h 28m 1
            Sergei Petrunia made transition -
            In Progress In Testing
            63d 8h 8m 1
            Alice Sherepa made transition -
            In Testing Stalled
            42d 19m 1
            Sergei Petrunia made transition -
            Stalled Closed
            1d 23h 11m 1

            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.