Type:
Task
Priority:
Minor
Resolution:
Fixed
Component/s:
None
Currently the loose scan code in opt_range.cc considers all indexes as possible for the access method. Due to inexact statistics it may happen that a loose scan is selected over a unique index.
This is clearly wrong since a "loose scan" over a unique index will read the same keys as a direct index scan, but the loose scan has more overhead.
relates to
MDEV-7118
Anemometer stop working after upgrade to from 5.6 to 10.0
Closed
{"report":{"fcp":1784.1000003814697,"ttfb":335.6000003814697,"pageVisibility":"visible","entityId":22758,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cfd78448-2d93-4ff4-a919-a1dc1cf555fa","navigationType":0,"readyForUser":1855.3000001907349,"redirectCount":0,"resourceLoadedEnd":1715.2000002861023,"resourceLoadedStart":343.5,"resourceTiming":[{"duration":543.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":343.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":887,"responseStart":0,"secureConnectionStart":0},{"duration":544.0999999046326,"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":343.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":888,"responseStart":0,"secureConnectionStart":0},{"duration":586.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":892.9000000953674,"responseEnd":930.7000002861023,"responseStart":906.6000003814697,"secureConnectionStart":344},{"duration":1148.1999998092651,"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":344.2000002861023,"connectEnd":902.7000002861023,"connectStart":902.7000002861023,"domainLookupEnd":902.7000002861023,"domainLookupStart":902.7000002861023,"fetchStart":344.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":903.6000003814697,"responseEnd":1492.4000000953674,"responseStart":921.4000000953674,"secureConnectionStart":902.7000002861023},{"duration":609.3000001907349,"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":344.5,"connectEnd":344.5,"connectStart":344.5,"domainLookupEnd":344.5,"domainLookupStart":344.5,"fetchStart":344.5,"redirectEnd":0,"redirectStart":0,"requestStart":904,"responseEnd":953.8000001907349,"responseStart":949,"secureConnectionStart":344.5},{"duration":603.5999999046326,"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":344.6000003814697,"connectEnd":344.6000003814697,"connectStart":344.6000003814697,"domainLookupEnd":344.6000003814697,"domainLookupStart":344.6000003814697,"fetchStart":344.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":904.1000003814697,"responseEnd":948.2000002861023,"responseStart":931.5,"secureConnectionStart":344.6000003814697},{"duration":609.1999998092651,"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":344.80000019073486,"connectEnd":344.80000019073486,"connectStart":344.80000019073486,"domainLookupEnd":344.80000019073486,"domainLookupStart":344.80000019073486,"fetchStart":344.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":904.2000002861023,"responseEnd":954,"responseStart":952.1000003814697,"secureConnectionStart":344.80000019073486},{"duration":559,"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":344.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":344.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":903.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":650.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":345.1000003814697,"connectEnd":345.1000003814697,"connectStart":345.1000003814697,"domainLookupEnd":345.1000003814697,"domainLookupStart":345.1000003814697,"fetchStart":345.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":907.3000001907349,"responseEnd":995.5,"responseStart":981.8000001907349,"secureConnectionStart":345.1000003814697},{"duration":560.4000000953674,"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":345.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":345.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":905.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":608.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":345.40000009536743,"connectEnd":345.40000009536743,"connectStart":345.40000009536743,"domainLookupEnd":345.40000009536743,"domainLookupStart":345.40000009536743,"fetchStart":345.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":911.3000001907349,"responseEnd":953.6000003814697,"responseStart":947.2000002861023,"secureConnectionStart":345.40000009536743},{"duration":1179.4000000953674,"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":353.5,"connectEnd":353.5,"connectStart":353.5,"domainLookupEnd":353.5,"domainLookupStart":353.5,"fetchStart":353.5,"redirectEnd":0,"redirectStart":0,"requestStart":1290.2000002861023,"responseEnd":1532.9000000953674,"responseStart":1527.4000000953674,"secureConnectionStart":353.5},{"duration":1361.5999999046326,"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":353.6000003814697,"connectEnd":353.6000003814697,"connectStart":353.6000003814697,"domainLookupEnd":353.6000003814697,"domainLookupStart":353.6000003814697,"fetchStart":353.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1702.4000000953674,"responseEnd":1715.2000002861023,"responseStart":1714.4000000953674,"secureConnectionStart":353.6000003814697},{"duration":456.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1078.2000002861023,"connectEnd":1078.2000002861023,"connectStart":1078.2000002861023,"domainLookupEnd":1078.2000002861023,"domainLookupStart":1078.2000002861023,"fetchStart":1078.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1498.5,"responseEnd":1535.1000003814697,"responseStart":1534.4000000953674,"secureConnectionStart":1078.2000002861023}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":193,"responseStart":336,"responseEnd":354,"domLoading":340,"domInteractive":1934,"domContentLoadedEventStart":1934,"domContentLoadedEventEnd":1985,"domComplete":3492,"loadEventStart":3492,"loadEventEnd":3492,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1905.2000002861023},{"name":"bigPipe.sidebar-id.end","time":1906},{"name":"bigPipe.activity-panel-pipe-id.start","time":1906.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1907.1000003814697},{"name":"activityTabFullyLoaded","time":2007.3000001907349}],"measures":[],"correlationId":"2bb2f92a336b3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Assigned to SergeyP for review.