create table t1 (a int);
|
insert into t1 values (1),(3),(2);
|
Compare
explain format=json select * from t1 order by a;
|
EXPLAIN
|
{
|
"query_block": {
|
"select_id": 1,
|
"read_sorted_file": {
|
"filesort": {
|
"sort_key": "t1.a",
|
"table": {
|
"table_name": "t1",
|
"access_type": "ALL",
|
"rows": 3,
|
"filtered": 100
|
}
|
}
|
}
|
}
|
}
|
with
explain format=json select * from t1 order by a desc;
|
EXPLAIN
|
{
|
"query_block": {
|
"select_id": 1,
|
"read_sorted_file": {
|
"filesort": {
|
"sort_key": "t1.a",
|
"table": {
|
"table_name": "t1",
|
"access_type": "ALL",
|
"rows": 3,
|
"filtered": 100
|
}
|
}
|
}
|
}
|
}
|
It would be nice to print ASC or DESC somehow. Maybe, only print DESC, because ASC is default so for the sake of brevity it should be omitted.
{"report":{"fcp":1521.5999999046326,"ttfb":346.39999985694885,"pageVisibility":"visible","entityId":58145,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a11da72c-6fe6-421f-9106-d28e40a74172","navigationType":0,"readyForUser":1606.3999998569489,"redirectCount":0,"resourceLoadedEnd":1636.0999999046326,"resourceLoadedStart":352.19999980926514,"resourceTiming":[{"duration":478,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":352.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":352.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":830.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":478.19999980926514,"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":352.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":352.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":830.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":547.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":352.69999980926514,"connectEnd":352.69999980926514,"connectStart":352.69999980926514,"domainLookupEnd":352.69999980926514,"domainLookupStart":352.69999980926514,"fetchStart":352.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":352.69999980926514,"responseEnd":900,"responseStart":900,"secureConnectionStart":352.69999980926514},{"duration":844.4000000953674,"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":352.89999985694885,"connectEnd":352.89999985694885,"connectStart":352.89999985694885,"domainLookupEnd":352.89999985694885,"domainLookupStart":352.89999985694885,"fetchStart":352.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":352.89999985694885,"responseEnd":1197.2999999523163,"responseStart":1197.2999999523163,"secureConnectionStart":352.89999985694885},{"duration":848,"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":353.09999990463257,"connectEnd":353.09999990463257,"connectStart":353.09999990463257,"domainLookupEnd":353.09999990463257,"domainLookupStart":353.09999990463257,"fetchStart":353.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":353.09999990463257,"responseEnd":1201.0999999046326,"responseStart":1201.0999999046326,"secureConnectionStart":353.09999990463257},{"duration":848.2999999523163,"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":353.2999999523163,"connectEnd":353.2999999523163,"connectStart":353.2999999523163,"domainLookupEnd":353.2999999523163,"domainLookupStart":353.2999999523163,"fetchStart":353.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":353.2999999523163,"responseEnd":1201.5999999046326,"responseStart":1201.5999999046326,"secureConnectionStart":353.2999999523163},{"duration":848.5,"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":353.5,"connectEnd":353.5,"connectStart":353.5,"domainLookupEnd":353.5,"domainLookupStart":353.5,"fetchStart":353.5,"redirectEnd":0,"redirectStart":0,"requestStart":353.5,"responseEnd":1202,"responseStart":1202,"secureConnectionStart":353.5},{"duration":849.4000000953674,"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":353.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":353.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1203.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":848.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":353.89999985694885,"connectEnd":353.89999985694885,"connectStart":353.89999985694885,"domainLookupEnd":353.89999985694885,"domainLookupStart":353.89999985694885,"fetchStart":353.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":353.89999985694885,"responseEnd":1202.3999998569489,"responseStart":1202.3999998569489,"secureConnectionStart":353.89999985694885},{"duration":849.0999999046326,"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":354.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":354.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1203.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":848.7000000476837,"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":354.2999999523163,"connectEnd":354.2999999523163,"connectStart":354.2999999523163,"domainLookupEnd":354.2999999523163,"domainLookupStart":354.2999999523163,"fetchStart":354.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":354.2999999523163,"responseEnd":1203,"responseStart":1203,"secureConnectionStart":354.2999999523163},{"duration":1060.3999998569489,"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":355,"connectEnd":355,"connectStart":355,"domainLookupEnd":355,"domainLookupStart":355,"fetchStart":355,"redirectEnd":0,"redirectStart":0,"requestStart":355,"responseEnd":1415.3999998569489,"responseStart":1415.3999998569489,"secureConnectionStart":355},{"duration":1228.0999999046326,"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":355.09999990463257,"connectEnd":355.09999990463257,"connectStart":355.09999990463257,"domainLookupEnd":355.09999990463257,"domainLookupStart":355.09999990463257,"fetchStart":355.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":355.09999990463257,"responseEnd":1583.1999998092651,"responseStart":1583.1999998092651,"secureConnectionStart":355.09999990463257},{"duration":364.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1049.7999999523163,"connectEnd":1049.7999999523163,"connectStart":1049.7999999523163,"domainLookupEnd":1049.7999999523163,"domainLookupStart":1049.7999999523163,"fetchStart":1049.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1049.7999999523163,"responseEnd":1414.3999998569489,"responseStart":1414.3999998569489,"secureConnectionStart":1049.7999999523163},{"duration":165,"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":1471.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1471.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1636.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":115.29999995231628,"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":1472,"connectEnd":1472,"connectStart":1472,"domainLookupEnd":1472,"domainLookupStart":1472,"fetchStart":1472,"redirectEnd":0,"redirectStart":0,"requestStart":1472,"responseEnd":1587.2999999523163,"responseStart":1587.2999999523163,"secureConnectionStart":1472},{"duration":123.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1472.3999998569489,"connectEnd":1472.3999998569489,"connectStart":1472.3999998569489,"domainLookupEnd":1472.3999998569489,"domainLookupStart":1472.3999998569489,"fetchStart":1472.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":1472.3999998569489,"responseEnd":1596.1999998092651,"responseStart":1596.0999999046326,"secureConnectionStart":1472.3999998569489},{"duration":186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1515.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1515.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1701.2999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":185,"responseStart":346,"responseEnd":350,"domLoading":349,"domInteractive":1728,"domContentLoadedEventStart":1728,"domContentLoadedEventEnd":1777,"domComplete":2080,"loadEventStart":2080,"loadEventEnd":2081,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1711.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1712.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1712.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1715.2999999523163},{"name":"activityTabFullyLoaded","time":1799.3999998569489}],"measures":[],"correlationId":"c0e6721af99be0","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Ok to push.