The following test case for the database dbt3_s001 from innodb_ext_key.test
returns the execution plan with REF access method though EQ_REF is expected.
create table t0 (a int);
insert into t0 values (1), (2), (3), (4), (5);
create index i_p_size on part(p_size);
set optimizer_switch='extended_keys=on';
explain
select * from t0, part ignore index (primary)
where p_partkey=t0.a and p_size=1;
MariaDB [dbt3_s001]> explain select * from t0, part ignore index (primary) where p_partkey=t0.a and p_size=1\G
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1. row ***************************
id: 1
select_type: SIMPLE
table: t0
type: ALL
possible_keys: NULL
key: NULL
key_len: NULL
ref: NULL
rows: 5
Extra: Using where
- 2. row ***************************
id: 1
select_type: SIMPLE
table: part
type: ref
possible_keys: i_p_size
key: i_p_size
key_len: 9
ref: const,dbt3_s001.t0.a
rows: 1
Extra:
2 rows in set (0.00 sec)
{"report":{"fcp":766.2000000476837,"ttfb":167.90000009536743,"pageVisibility":"visible","entityId":21810,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"6e94674e-f6c2-4796-a793-2ec1866b55f5","navigationType":0,"readyForUser":869.2999999523163,"redirectCount":0,"resourceLoadedEnd":496.90000009536743,"resourceLoadedStart":178.70000004768372,"resourceTiming":[{"duration":4,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":178.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":178.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":182.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":6.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":179,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":185.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":199.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":179.09999990463257,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":179.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":186.40000009536743,"responseEnd":378.59999990463257,"responseStart":203.5,"secureConnectionStart":186.20000004768372},{"duration":317.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":179.59999990463257,"connectEnd":179.59999990463257,"connectStart":179.59999990463257,"domainLookupEnd":179.59999990463257,"domainLookupStart":179.59999990463257,"fetchStart":179.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":187.29999995231628,"responseEnd":496.90000009536743,"responseStart":206.79999995231628,"secureConnectionStart":179.59999990463257},{"duration":28.899999856948853,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":179.70000004768372,"connectEnd":179.70000004768372,"connectStart":179.70000004768372,"domainLookupEnd":179.70000004768372,"domainLookupStart":179.70000004768372,"fetchStart":179.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":187.40000009536743,"responseEnd":208.59999990463257,"responseStart":201.20000004768372,"secureConnectionStart":179.70000004768372},{"duration":32.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":179.79999995231628,"connectEnd":179.79999995231628,"connectStart":179.79999995231628,"domainLookupEnd":179.79999995231628,"domainLookupStart":179.79999995231628,"fetchStart":179.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":189.90000009536743,"responseEnd":212.20000004768372,"responseStart":210.5,"secureConnectionStart":179.79999995231628},{"duration":31.899999856948853,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":179.90000009536743,"connectEnd":179.90000009536743,"connectStart":179.90000009536743,"domainLookupEnd":179.90000009536743,"domainLookupStart":179.90000009536743,"fetchStart":179.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":189.70000004768372,"responseEnd":211.79999995231628,"responseStart":209.29999995231628,"secureConnectionStart":179.90000009536743},{"duration":8.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":180,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":188.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":59.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":180.09999990463257,"connectEnd":180.09999990463257,"connectStart":180.09999990463257,"domainLookupEnd":180.09999990463257,"domainLookupStart":180.09999990463257,"fetchStart":180.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":192.20000004768372,"responseEnd":239.59999990463257,"responseStart":237.5,"secureConnectionStart":180.09999990463257},{"duration":10.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":180.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":190.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":49.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":180.40000009536743,"connectEnd":180.40000009536743,"connectStart":180.40000009536743,"domainLookupEnd":180.40000009536743,"domainLookupStart":180.40000009536743,"fetchStart":180.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":193.59999990463257,"responseEnd":229.5,"responseStart":213.59999990463257,"secureConnectionStart":180.40000009536743},{"duration":296.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":186.29999995231628,"connectEnd":186.29999995231628,"connectStart":186.29999995231628,"domainLookupEnd":186.29999995231628,"domainLookupStart":186.29999995231628,"fetchStart":186.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":213.40000009536743,"responseEnd":482.40000009536743,"responseStart":479.7000000476837,"secureConnectionStart":186.29999995231628},{"duration":304.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":186.40000009536743,"connectEnd":186.40000009536743,"connectStart":186.40000009536743,"domainLookupEnd":186.40000009536743,"domainLookupStart":186.40000009536743,"fetchStart":186.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":219.5,"responseEnd":490.7999999523163,"responseStart":482.59999990463257,"secureConnectionStart":186.40000009536743},{"duration":56.799999952316284,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":524.4000000953674,"connectEnd":524.4000000953674,"connectStart":524.4000000953674,"domainLookupEnd":524.4000000953674,"domainLookupStart":524.4000000953674,"fetchStart":524.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":551.5,"responseEnd":581.2000000476837,"responseStart":580.4000000953674,"secureConnectionStart":524.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":30,"responseStart":168,"responseEnd":186,"domLoading":172,"domInteractive":923,"domContentLoadedEventStart":923,"domContentLoadedEventEnd":960,"domComplete":1722,"loadEventStart":1722,"loadEventEnd":1723,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":905.2000000476837},{"name":"bigPipe.sidebar-id.end","time":906},{"name":"bigPipe.activity-panel-pipe-id.start","time":906.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":909},{"name":"activityTabFullyLoaded","time":966}],"measures":[],"correlationId":"89b83afef8e6b","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":80,"dbReadsTimeInMs":7,"dbConnsTimeInMs":14,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}