Type:
Task
Priority:
Major
Resolution:
Fixed
This patch https://github.com/mariadb/server/commit/8eeb689e9fc57afe19a8dbff354b5f9f167867a9
has added MRR support to partitioning engine. If the partitions ' table engine supports MRR, the ha_partition engine will also support it.
The patch was targeting only the Spider engine, but actually it enabled MRR for partitioned DS-MRR engines (InnoDB,MyISAM and Aria). MRR support in MyRocks is not in MariaDB yet, but it in the upstream MyRocks so we will get in the next merge.
MDEV-20611 fixes the basic issues with partitioned DS-MRR. It would be nice to have more test coverage.
The test should have:
A partitioned table that supports [DS-] MRR. Nice to try different partitioning schemes.
The table must have an index.
The query must use MRR or BKA+MRR to read the data from the partitioned table.
AFAIU, there are two different cases:
The lookup tuples do not cover all partitioning fields. In this case, for each lookup tuple, ha_partition needs to search for it in all partitions (well, in all partitions that were left after partition pruning)
The lookup tuples cover partitioned fields. In this case, ha_partition will split the list of ranges into sub-lists that cover individual partitions.
Things to cover:
non-trivial pushed Index Condition
Not-exists optimization (Use LEFT JOIN with WHERE inner_table.not_null_col IS NULL
BKAH (hashed BKA).
relates to
MDEV-20611
MRR scan over partitioned InnoDB table produces "Out of memory" error
Closed
Transition
Time In Source Status
Execution Times
Open
In Progress
1d 4h 53m
1
In Progress
Closed
135d 9h 16m
1
{"report":{"fcp":777.8000001907349,"ttfb":152.20000004768372,"pageVisibility":"visible","entityId":80496,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d73e2039-7a0f-4050-9fb4-a9b7adab3c3d","navigationType":0,"readyForUser":845.5,"redirectCount":0,"resourceLoadedEnd":826.2000000476837,"resourceLoadedStart":158.10000014305115,"resourceTiming":[{"duration":128.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":158.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.5,"responseStart":0,"secureConnectionStart":0},{"duration":128.19999980926514,"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":158.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":158.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.5,"responseStart":0,"secureConnectionStart":0},{"duration":138.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":158.40000009536743,"connectEnd":158.40000009536743,"connectStart":158.40000009536743,"domainLookupEnd":158.40000009536743,"domainLookupStart":158.40000009536743,"fetchStart":158.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":158.40000009536743,"responseEnd":297,"responseStart":297,"secureConnectionStart":158.40000009536743},{"duration":255.5,"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":158.60000014305115,"connectEnd":158.60000014305115,"connectStart":158.60000014305115,"domainLookupEnd":158.60000014305115,"domainLookupStart":158.60000014305115,"fetchStart":158.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":158.60000014305115,"responseEnd":414.10000014305115,"responseStart":414.10000014305115,"secureConnectionStart":158.60000014305115},{"duration":259.2999999523163,"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":158.70000004768372,"connectEnd":158.70000004768372,"connectStart":158.70000004768372,"domainLookupEnd":158.70000004768372,"domainLookupStart":158.70000004768372,"fetchStart":158.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":158.70000004768372,"responseEnd":418,"responseStart":418,"secureConnectionStart":158.70000004768372},{"duration":260.09999990463257,"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":158.80000019073486,"connectEnd":158.80000019073486,"connectStart":158.80000019073486,"domainLookupEnd":158.80000019073486,"domainLookupStart":158.80000019073486,"fetchStart":158.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":158.80000019073486,"responseEnd":418.90000009536743,"responseStart":418.90000009536743,"secureConnectionStart":158.80000019073486},{"duration":260.2999999523163,"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":158.90000009536743,"connectEnd":158.90000009536743,"connectStart":158.90000009536743,"domainLookupEnd":158.90000009536743,"domainLookupStart":158.90000009536743,"fetchStart":158.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":158.90000009536743,"responseEnd":419.2000000476837,"responseStart":419.2000000476837,"secureConnectionStart":158.90000009536743},{"duration":260.7000000476837,"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":159,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":419.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":260.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":159.10000014305115,"connectEnd":159.10000014305115,"connectStart":159.10000014305115,"domainLookupEnd":159.10000014305115,"domainLookupStart":159.10000014305115,"fetchStart":159.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":159.10000014305115,"responseEnd":419.7000000476837,"responseStart":419.7000000476837,"secureConnectionStart":159.10000014305115},{"duration":260.90000009536743,"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":159.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":420.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":260.7999999523163,"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":159.40000009536743,"connectEnd":159.40000009536743,"connectStart":159.40000009536743,"domainLookupEnd":159.40000009536743,"domainLookupStart":159.40000009536743,"fetchStart":159.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":159.40000009536743,"responseEnd":420.2000000476837,"responseStart":420.2000000476837,"secureConnectionStart":159.40000009536743},{"duration":361.2000000476837,"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":160.10000014305115,"connectEnd":160.10000014305115,"connectStart":160.10000014305115,"domainLookupEnd":160.10000014305115,"domainLookupStart":160.10000014305115,"fetchStart":160.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":160.10000014305115,"responseEnd":521.3000001907349,"responseStart":521.3000001907349,"secureConnectionStart":160.10000014305115},{"duration":666,"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":160.20000004768372,"connectEnd":160.20000004768372,"connectStart":160.20000004768372,"domainLookupEnd":160.20000004768372,"domainLookupStart":160.20000004768372,"fetchStart":160.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":160.20000004768372,"responseEnd":826.2000000476837,"responseStart":826.2000000476837,"secureConnectionStart":160.20000004768372},{"duration":73.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":448.40000009536743,"connectEnd":448.40000009536743,"connectStart":448.40000009536743,"domainLookupEnd":448.40000009536743,"domainLookupStart":448.40000009536743,"fetchStart":448.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":448.40000009536743,"responseEnd":522.3000001907349,"responseStart":522.3000001907349,"secureConnectionStart":448.40000009536743}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":18,"responseStart":152,"responseEnd":156,"domLoading":156,"domInteractive":893,"domContentLoadedEventStart":893,"domContentLoadedEventEnd":937,"domComplete":1527,"loadEventStart":1527,"loadEventEnd":1527,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":874.6000001430511},{"name":"bigPipe.sidebar-id.end","time":875.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":875.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":876.6000001430511},{"name":"activityTabFullyLoaded","time":953.1000001430511}],"measures":[],"correlationId":"1887811c2b2620","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":82,"dbReadsTimeInMs":16,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}