Type:
New Feature
Priority:
Critical
Resolution:
Fixed
The hint limits the time of statement execution to the number of milliseconds given in the hint argument. The syntax is as follows:
SELECT /*+ MAX_EXECUTION_TIME(milliseconds) */ ...
Only top-level SELECT statements support the hint. Trying to apply it to INSERT, REPLACE, UPDATE and DELETE must issue a warning. The hint is not supported inside stored procedures, triggers, events and subqueries.
Correctly handle situations where max_statement_time variable is set like here:
SET STATEMENT max_statement_time=1 FOR
SELECT /*+ MAX_EXECUTION_TIME(500) */ count (*) FROM t1 a;
In this case a warning must be issued, and the hint MAX_EXECUTION_TIME must be ignored.
{"report":{"fcp":773.5,"ttfb":165.5,"pageVisibility":"visible","entityId":130571,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"163053ed-f283-4fa8-83af-70b81730c09f","navigationType":0,"readyForUser":857.5,"redirectCount":0,"resourceLoadedEnd":503.10000014305115,"resourceLoadedStart":172.79999995231628,"resourceTiming":[{"duration":8.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":172.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":181.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":10.799999952316284,"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":173,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":183.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":175.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":173.10000014305115,"connectEnd":173.10000014305115,"connectStart":173.10000014305115,"domainLookupEnd":173.10000014305115,"domainLookupStart":173.10000014305115,"fetchStart":173.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":189.60000014305115,"responseEnd":348.2000000476837,"responseStart":206.29999995231628,"secureConnectionStart":173.10000014305115},{"duration":329.90000009536743,"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":173.20000004768372,"connectEnd":173.20000004768372,"connectStart":173.20000004768372,"domainLookupEnd":173.20000004768372,"domainLookupStart":173.20000004768372,"fetchStart":173.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":191.29999995231628,"responseEnd":503.10000014305115,"responseStart":213.5,"secureConnectionStart":173.20000004768372},{"duration":43,"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":173.29999995231628,"connectEnd":173.29999995231628,"connectStart":173.29999995231628,"domainLookupEnd":173.29999995231628,"domainLookupStart":173.29999995231628,"fetchStart":173.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":191.5,"responseEnd":216.29999995231628,"responseStart":212.90000009536743,"secureConnectionStart":173.29999995231628},{"duration":47.39999985694885,"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":173.40000009536743,"connectEnd":173.40000009536743,"connectStart":173.40000009536743,"domainLookupEnd":173.40000009536743,"domainLookupStart":173.40000009536743,"fetchStart":173.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":191.79999995231628,"responseEnd":220.79999995231628,"responseStart":214,"secureConnectionStart":173.40000009536743},{"duration":48,"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":173.5,"connectEnd":173.5,"connectStart":173.5,"domainLookupEnd":173.5,"domainLookupStart":173.5,"fetchStart":173.5,"redirectEnd":0,"redirectStart":0,"requestStart":192.40000009536743,"responseEnd":221.5,"responseStart":217.90000009536743,"secureConnectionStart":173.5},{"duration":14,"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":173.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":187.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":48,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":173.70000004768372,"connectEnd":173.70000004768372,"connectStart":173.70000004768372,"domainLookupEnd":173.70000004768372,"domainLookupStart":173.70000004768372,"fetchStart":173.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":193.70000004768372,"responseEnd":221.70000004768372,"responseStart":218.5,"secureConnectionStart":173.70000004768372},{"duration":14.800000190734863,"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":173.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":188.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":50,"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":173.90000009536743,"connectEnd":173.90000009536743,"connectStart":173.90000009536743,"domainLookupEnd":173.90000009536743,"domainLookupStart":173.90000009536743,"fetchStart":173.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":194,"responseEnd":223.90000009536743,"responseStart":219.5,"secureConnectionStart":173.90000009536743},{"duration":213,"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":201.79999995231628,"connectEnd":201.79999995231628,"connectStart":201.79999995231628,"domainLookupEnd":201.79999995231628,"domainLookupStart":201.79999995231628,"fetchStart":201.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":242,"responseEnd":414.7999999523163,"responseStart":409.90000009536743,"secureConnectionStart":201.79999995231628},{"duration":213.70000004768372,"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":201.90000009536743,"connectEnd":201.90000009536743,"connectStart":201.90000009536743,"domainLookupEnd":201.90000009536743,"domainLookupStart":201.90000009536743,"fetchStart":201.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":249.70000004768372,"responseEnd":415.60000014305115,"responseStart":412.40000009536743,"secureConnectionStart":201.90000009536743},{"duration":113.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":492.40000009536743,"connectEnd":492.40000009536743,"connectStart":492.40000009536743,"domainLookupEnd":492.40000009536743,"domainLookupStart":492.40000009536743,"fetchStart":492.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":574.2000000476837,"responseEnd":605.7999999523163,"responseStart":604,"secureConnectionStart":492.40000009536743},{"duration":220.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":726.5,"connectEnd":726.5,"connectStart":726.5,"domainLookupEnd":726.5,"domainLookupStart":726.5,"fetchStart":726.5,"redirectEnd":0,"redirectStart":0,"requestStart":918.2999999523163,"responseEnd":947.2999999523163,"responseStart":945.9000000953674,"secureConnectionStart":726.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":5,"responseStart":165,"responseEnd":201,"domLoading":169,"domInteractive":967,"domContentLoadedEventStart":967,"domContentLoadedEventEnd":1028,"domComplete":1505,"loadEventStart":1505,"loadEventEnd":1506,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":937},{"name":"bigPipe.sidebar-id.end","time":937.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":938},{"name":"bigPipe.activity-panel-pipe-id.end","time":939.5},{"name":"activityTabFullyLoaded","time":1045.1000001430511}],"measures":[],"correlationId":"bcf9402f96c507","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":26,"dbConnsTimeInMs":35,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Pushed a new branch bb-11.8-
MDEV-35504-opt-hints-v2 including the most recent commits to main.