MDEV-6109 has added support for EXPLAIN=JSON. The basic structure is there, but the output can be improved for a number of cases. This is a task to list/work on them.
Very important
JSON-ish output for ORDER BY/GROUP BY/ DISTINCT (MDEV-6995)
Walk through what we currently produce and see if it all makes sense.
Not very important
Subquery cache feature (ANALYZE should print cache's statistics)
To be investigated: MySQL has improved printout of triggered conditions. At least, they did it for the "Full scan on NULL key" case:
Currently, MariaDB prints:
"attached_condition": "trigcond(((<cache>(outer_t1.a) = t1.a) or isnull(t1.a)))",
while in 5.6 I see:
"attached_condition": "<if>(outer_field_is_not_null, ((<cache>(`j2`.`outer_t1`.`a`) = `j2`.`t1`.`a`) or isnull(`j2`.`t1`.`a`)), true)"
Sergei Petrunia
added a comment - To be investigated: MySQL has improved printout of triggered conditions. At least, they did it for the "Full scan on NULL key" case:
Currently, MariaDB prints:
"attached_condition": "trigcond(((<cache>(outer_t1.a) = t1.a) or isnull(t1.a)))",
while in 5.6 I see:
"attached_condition": "<if>(outer_field_is_not_null, ((<cache>(`j2`.`outer_t1`.`a`) = `j2`.`t1`.`a`) or isnull(`j2`.`t1`.`a`)), true)"
People
Sergei Petrunia
Sergei Petrunia
Votes:
0Vote for this issue
Watchers:
1Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":991,"ttfb":273.59999990463257,"pageVisibility":"visible","entityId":49212,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"037706f7-acee-43b3-836e-42edbcdbd2e3","navigationType":0,"readyForUser":1075.0999999046326,"redirectCount":0,"resourceLoadedEnd":1257.9000000953674,"resourceLoadedStart":282.09999990463257,"resourceTiming":[{"duration":116.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":399,"responseStart":0,"secureConnectionStart":0},{"duration":117,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":282.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":399.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":156.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":282.59999990463257,"connectEnd":282.59999990463257,"connectStart":282.59999990463257,"domainLookupEnd":282.59999990463257,"domainLookupStart":282.59999990463257,"fetchStart":282.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":282.59999990463257,"responseEnd":438.90000009536743,"responseStart":438.90000009536743,"secureConnectionStart":282.59999990463257},{"duration":240.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":282.7000002861023,"connectEnd":282.7000002861023,"connectStart":282.7000002861023,"domainLookupEnd":282.7000002861023,"domainLookupStart":282.7000002861023,"fetchStart":282.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":282.7000002861023,"responseEnd":523.0999999046326,"responseStart":523.0999999046326,"secureConnectionStart":282.7000002861023},{"duration":244,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":282.90000009536743,"connectEnd":282.90000009536743,"connectStart":282.90000009536743,"domainLookupEnd":282.90000009536743,"domainLookupStart":282.90000009536743,"fetchStart":282.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":282.90000009536743,"responseEnd":526.9000000953674,"responseStart":526.9000000953674,"secureConnectionStart":282.90000009536743},{"duration":244.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":283.2000002861023,"connectEnd":283.2000002861023,"connectStart":283.2000002861023,"domainLookupEnd":283.2000002861023,"domainLookupStart":283.2000002861023,"fetchStart":283.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":283.2000002861023,"responseEnd":527.5999999046326,"responseStart":527.5999999046326,"secureConnectionStart":283.2000002861023},{"duration":244.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":283.30000019073486,"connectEnd":283.30000019073486,"connectStart":283.30000019073486,"domainLookupEnd":283.30000019073486,"domainLookupStart":283.30000019073486,"fetchStart":283.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":283.30000019073486,"responseEnd":528,"responseStart":528,"secureConnectionStart":283.30000019073486},{"duration":299.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":283.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":245.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":283.7000002861023,"connectEnd":283.7000002861023,"connectStart":283.7000002861023,"domainLookupEnd":283.7000002861023,"domainLookupStart":283.7000002861023,"fetchStart":283.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":283.7000002861023,"responseEnd":528.9000000953674,"responseStart":528.9000000953674,"secureConnectionStart":283.7000002861023},{"duration":299.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":283.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":583,"responseStart":0,"secureConnectionStart":0},{"duration":245.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":284,"responseEnd":529.5,"responseStart":529.5,"secureConnectionStart":284},{"duration":745.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":284.90000009536743,"connectEnd":284.90000009536743,"connectStart":284.90000009536743,"domainLookupEnd":284.90000009536743,"domainLookupStart":284.90000009536743,"fetchStart":284.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":284.90000009536743,"responseEnd":1030.8000001907349,"responseStart":1030.8000001907349,"secureConnectionStart":284.90000009536743},{"duration":973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":284.90000009536743,"connectEnd":284.90000009536743,"connectStart":284.90000009536743,"domainLookupEnd":284.90000009536743,"domainLookupStart":284.90000009536743,"fetchStart":284.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":284.90000009536743,"responseEnd":1257.9000000953674,"responseStart":1257.9000000953674,"secureConnectionStart":284.90000009536743},{"duration":433.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":598.8000001907349,"connectEnd":598.8000001907349,"connectStart":598.8000001907349,"domainLookupEnd":598.8000001907349,"domainLookupStart":598.8000001907349,"fetchStart":598.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":598.8000001907349,"responseEnd":1032.5,"responseStart":1032.5,"secureConnectionStart":598.8000001907349},{"duration":301.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":976.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":976.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1277.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":329.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1111.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1111.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1440.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":328.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1112.0999999046326,"connectEnd":1112.0999999046326,"connectStart":1112.0999999046326,"domainLookupEnd":1112.0999999046326,"domainLookupStart":1112.0999999046326,"fetchStart":1112.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1112.0999999046326,"responseEnd":1440.9000000953674,"responseStart":1440.9000000953674,"secureConnectionStart":1112.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":113,"responseStart":274,"responseEnd":276,"domLoading":280,"domInteractive":1280,"domContentLoadedEventStart":1280,"domContentLoadedEventEnd":1332,"domComplete":2514,"loadEventStart":2514,"loadEventEnd":2515,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1263.7000002861023},{"name":"bigPipe.sidebar-id.end","time":1264.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1264.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1266},{"name":"activityTabFullyLoaded","time":1451.9000000953674}],"measures":[],"correlationId":"41851ab3dcc23c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
To be investigated: MySQL has improved printout of triggered conditions. At least, they did it for the "Full scan on NULL key" case:
Currently, MariaDB prints:
"attached_condition": "trigcond(((<cache>(outer_t1.a) = t1.a) or isnull(t1.a)))",
while in 5.6 I see:
"attached_condition": "<if>(outer_field_is_not_null, ((<cache>(`j2`.`outer_t1`.`a`) = `j2`.`t1`.`a`) or isnull(`j2`.`t1`.`a`)), true)"