We've ported "filesort with small limit" optimization from mysql-5.6 into MariaDB 10.0.
The problem is, it is impossible to see whether that optimization is used or not.
In MySQL, one can check this as follows
- set optimizer_trace=1
- SELECT // need to run SELECT, not EXPLAIN
- select * from optimizer_trace
And then look for something like this:
"join_execution": {
|
...
|
"filesort_priority_queue_optimization": {
|
"limit": 10,
|
"rows_estimate": 198717,
|
"row_size": 215,
|
"memory_available": 262144,
|
"chosen": true
|
},
|
In MariaDB, there is no optimizer_trace, so one can't see it at all.
Sergei Petrunia
made changes -
Field |
Original Value |
New Value |
Assignee
|
|
Sergei Petrunia
[ psergey
]
|
Sergei Petrunia
made changes -
Description
|
We've ported "filesort with small limit" optimization from mysql-5.6 into MariaDB 10.0.
The problem is, it is impossible to see whether that optimization is used or not.
In MySQL, one can check this as follows
* set optimizer_trace=1
* SELECT // need to run SELECT, not EXPLAIN
* select * from optimizer_trace
And then look for something like this:
{nformat}
"join_execution": {
...
"filesort_priority_queue_optimization": {
"limit": 10,
"rows_estimate": 198717,
"row_size": 215,
"memory_available": 262144,
"chosen": true
},
{noformat}
In MariaDB, one can't see it at all.
|
We've ported "filesort with small limit" optimization from mysql-5.6 into MariaDB 10.0.
The problem is, it is impossible to see whether that optimization is used or not.
In MySQL, one can check this as follows
* set optimizer_trace=1
* SELECT // need to run SELECT, not EXPLAIN
* select * from optimizer_trace
And then look for something like this:
{noformat}
"join_execution": {
...
"filesort_priority_queue_optimization": {
"limit": 10,
"rows_estimate": 198717,
"row_size": 215,
"memory_available": 262144,
"chosen": true
},
{noformat}
In MariaDB, one can't see it at all.
|
Sergei Petrunia
made changes -
Description
|
We've ported "filesort with small limit" optimization from mysql-5.6 into MariaDB 10.0.
The problem is, it is impossible to see whether that optimization is used or not.
In MySQL, one can check this as follows
* set optimizer_trace=1
* SELECT // need to run SELECT, not EXPLAIN
* select * from optimizer_trace
And then look for something like this:
{noformat}
"join_execution": {
...
"filesort_priority_queue_optimization": {
"limit": 10,
"rows_estimate": 198717,
"row_size": 215,
"memory_available": 262144,
"chosen": true
},
{noformat}
In MariaDB, one can't see it at all.
|
We've ported "filesort with small limit" optimization from mysql-5.6 into MariaDB 10.0.
The problem is, it is impossible to see whether that optimization is used or not.
In MySQL, one can check this as follows
* set optimizer_trace=1
* SELECT // need to run SELECT, not EXPLAIN
* select * from optimizer_trace
And then look for something like this:
{noformat}
"join_execution": {
...
"filesort_priority_queue_optimization": {
"limit": 10,
"rows_estimate": 198717,
"row_size": 215,
"memory_available": 262144,
"chosen": true
},
{noformat}
In MariaDB, there is no optimizer_trace, so one can't see it at all.
|
Sergei Petrunia
made changes -
Fix Version/s
|
|
10.0.13
[ 16300
]
|
Fix Version/s
|
10.0
[ 16000
]
|
|
Sergei Petrunia
made changes -
Resolution
|
|
Fixed
[ 1
]
|
Status
|
Open
[ 1
]
|
Closed
[ 6
]
|
Sergei Golubchik
made changes -
Workflow
|
MariaDB v3
[ 64328
]
|
MariaDB v4
[ 148021
]
|
{"report":{"fcp":1416.7999997138977,"ttfb":213.7999997138977,"pageVisibility":"visible","entityId":40314,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"412ab5c7-1bf2-4228-b3ef-49e035e99261","navigationType":0,"readyForUser":1570.5,"redirectCount":0,"resourceLoadedEnd":2045.1999998092651,"resourceLoadedStart":286.40000009536743,"resourceTiming":[{"duration":210.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":286.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":497.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":338.30000019073486,"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":286.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":624.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":348.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":286.90000009536743,"connectEnd":286.90000009536743,"connectStart":286.90000009536743,"domainLookupEnd":286.90000009536743,"domainLookupStart":286.90000009536743,"fetchStart":286.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":286.90000009536743,"responseEnd":635.0999999046326,"responseStart":635.0999999046326,"secureConnectionStart":286.90000009536743},{"duration":395.5,"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":287,"connectEnd":287,"connectStart":287,"domainLookupEnd":287,"domainLookupStart":287,"fetchStart":287,"redirectEnd":0,"redirectStart":0,"requestStart":287,"responseEnd":682.5,"responseStart":682.5,"secureConnectionStart":287},{"duration":400.40000009536743,"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":287.2999997138977,"connectEnd":287.2999997138977,"connectStart":287.2999997138977,"domainLookupEnd":287.2999997138977,"domainLookupStart":287.2999997138977,"fetchStart":287.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":287.2999997138977,"responseEnd":687.6999998092651,"responseStart":687.6999998092651,"secureConnectionStart":287.2999997138977},{"duration":401.40000009536743,"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":287.5,"connectEnd":287.5,"connectStart":287.5,"domainLookupEnd":287.5,"domainLookupStart":287.5,"fetchStart":287.5,"redirectEnd":0,"redirectStart":0,"requestStart":287.5,"responseEnd":688.9000000953674,"responseStart":688.9000000953674,"secureConnectionStart":287.5},{"duration":402,"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":287.59999990463257,"connectEnd":287.59999990463257,"connectStart":287.59999990463257,"domainLookupEnd":287.59999990463257,"domainLookupStart":287.59999990463257,"fetchStart":287.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":287.59999990463257,"responseEnd":689.5999999046326,"responseStart":689.5999999046326,"secureConnectionStart":287.59999990463257},{"duration":574.1000003814697,"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":287.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":287.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":861.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":402.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":287.90000009536743,"connectEnd":287.90000009536743,"connectStart":287.90000009536743,"domainLookupEnd":287.90000009536743,"domainLookupStart":287.90000009536743,"fetchStart":287.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":287.90000009536743,"responseEnd":690.4000000953674,"responseStart":690.4000000953674,"secureConnectionStart":287.90000009536743},{"duration":574,"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":288.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":862.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":403.2000002861023,"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":288.2999997138977,"connectEnd":288.2999997138977,"connectStart":288.2999997138977,"domainLookupEnd":288.2999997138977,"domainLookupStart":288.2999997138977,"fetchStart":288.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":288.2999997138977,"responseEnd":691.5,"responseStart":691.5,"secureConnectionStart":288.2999997138977},{"duration":834.0999999046326,"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":289.09999990463257,"connectEnd":289.09999990463257,"connectStart":289.09999990463257,"domainLookupEnd":289.09999990463257,"domainLookupStart":289.09999990463257,"fetchStart":289.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":289.09999990463257,"responseEnd":1123.1999998092651,"responseStart":1123.1999998092651,"secureConnectionStart":289.09999990463257},{"duration":1717.9000000953674,"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":289.19999980926514,"connectEnd":289.19999980926514,"connectStart":289.19999980926514,"domainLookupEnd":289.19999980926514,"domainLookupStart":289.19999980926514,"fetchStart":289.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":289.19999980926514,"responseEnd":2007.0999999046326,"responseStart":2007.0999999046326,"secureConnectionStart":289.19999980926514},{"duration":221.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":902.5999999046326,"connectEnd":902.5999999046326,"connectStart":902.5999999046326,"domainLookupEnd":902.5999999046326,"domainLookupStart":902.5999999046326,"fetchStart":902.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":902.5999999046326,"responseEnd":1124.2999997138977,"responseStart":1124.2999997138977,"secureConnectionStart":902.5999999046326},{"duration":701.9000000953674,"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":1343.2999997138977,"connectEnd":1343.2999997138977,"connectStart":1343.2999997138977,"domainLookupEnd":1343.2999997138977,"domainLookupStart":1343.2999997138977,"fetchStart":1343.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1343.2999997138977,"responseEnd":2045.1999998092651,"responseStart":2045.1999998092651,"secureConnectionStart":1343.2999997138977}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":41,"responseStart":214,"responseEnd":220,"domLoading":285,"domInteractive":2065,"domContentLoadedEventStart":2065,"domContentLoadedEventEnd":2118,"domComplete":2783,"loadEventStart":2783,"loadEventEnd":2783,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2009},{"name":"bigPipe.sidebar-id.end","time":2009.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2010.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2013},{"name":"activityTabFullyLoaded","time":2139.9000000953674}],"measures":[],"correlationId":"d9d6ac699ddaa4","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":19,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}