As described in MXS-4214, there's a need to have finer control over when the schemarouter caches are emptied as the act of populating the cache causes a one-time increase in query latency.
Being able to manually clear the cache, both globally and for a single user, would make it easier to manage when the expensive work of loading the database and table information takes place.
The command should also allow the cache to be marked a stale instead of clearing it completely. This way the cache can still be used if max_staleness is set to a high value.
markus makela
added a comment - The command should also allow the cache to be marked a stale instead of clearing it completely. This way the cache can still be used if max_staleness is set to a high value.
People
markus makela
markus makela
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":825.3999996185303,"ttfb":234.69999980926514,"pageVisibility":"visible","entityId":113109,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"967487e0-2f31-459f-a840-c72c773df2b8","navigationType":0,"readyForUser":896.0999999046326,"redirectCount":0,"resourceLoadedEnd":645.7999997138977,"resourceLoadedStart":240.19999980926514,"resourceTiming":[{"duration":7.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":240.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":247.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":7.599999904632568,"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":240.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":240.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":248.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":88.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":240.69999980926514,"connectEnd":240.69999980926514,"connectStart":240.69999980926514,"domainLookupEnd":240.69999980926514,"domainLookupStart":240.69999980926514,"fetchStart":240.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":253.2999997138977,"responseEnd":328.8999996185303,"responseStart":289.69999980926514,"secureConnectionStart":240.69999980926514},{"duration":102,"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":240.89999961853027,"connectEnd":240.89999961853027,"connectStart":240.89999961853027,"domainLookupEnd":240.89999961853027,"domainLookupStart":240.89999961853027,"fetchStart":240.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":254,"responseEnd":342.8999996185303,"responseStart":295.2999997138977,"secureConnectionStart":240.89999961853027},{"duration":48.5,"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":241.09999990463257,"connectEnd":241.09999990463257,"connectStart":241.09999990463257,"domainLookupEnd":241.09999990463257,"domainLookupStart":241.09999990463257,"fetchStart":241.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":254.09999990463257,"responseEnd":289.59999990463257,"responseStart":289,"secureConnectionStart":241.09999990463257},{"duration":62.30000019073486,"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":241.19999980926514,"connectEnd":241.19999980926514,"connectStart":241.19999980926514,"domainLookupEnd":241.19999980926514,"domainLookupStart":241.19999980926514,"fetchStart":241.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":257.19999980926514,"responseEnd":303.5,"responseStart":302.09999990463257,"secureConnectionStart":241.19999980926514},{"duration":66.09999990463257,"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":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":257.69999980926514,"responseEnd":307.59999990463257,"responseStart":306.5,"secureConnectionStart":241.5},{"duration":15.799999713897705,"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":241.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":70.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":241.7999997138977,"connectEnd":241.7999997138977,"connectStart":241.7999997138977,"domainLookupEnd":241.7999997138977,"domainLookupStart":241.7999997138977,"fetchStart":241.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":260,"responseEnd":312.09999990463257,"responseStart":310.7999997138977,"secureConnectionStart":241.7999997138977},{"duration":16.799999713897705,"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":242,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":258.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":63,"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":242.09999990463257,"connectEnd":265.8999996185303,"connectStart":265.8999996185303,"domainLookupEnd":265.8999996185303,"domainLookupStart":265.8999996185303,"fetchStart":242.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":287.09999990463257,"responseEnd":305.09999990463257,"responseStart":298.59999990463257,"secureConnectionStart":265.8999996185303},{"duration":393.69999980926514,"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":251.69999980926514,"connectEnd":251.69999980926514,"connectStart":251.69999980926514,"domainLookupEnd":251.69999980926514,"domainLookupStart":251.69999980926514,"fetchStart":251.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":324.59999990463257,"responseEnd":645.3999996185303,"responseStart":634.5,"secureConnectionStart":251.69999980926514},{"duration":393.5,"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":252.2999997138977,"connectEnd":252.2999997138977,"connectStart":252.2999997138977,"domainLookupEnd":252.2999997138977,"domainLookupStart":252.2999997138977,"fetchStart":252.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":403.69999980926514,"responseEnd":645.7999997138977,"responseStart":636.1999998092651,"secureConnectionStart":252.2999997138977},{"duration":203.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":571.8999996185303,"connectEnd":571.8999996185303,"connectStart":571.8999996185303,"domainLookupEnd":571.8999996185303,"domainLookupStart":571.8999996185303,"fetchStart":571.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":738.1999998092651,"responseEnd":775.1999998092651,"responseStart":774,"secureConnectionStart":571.8999996185303},{"duration":137.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":800.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":800.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":937.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":159.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":823.8999996185303,"connectEnd":823.8999996185303,"connectStart":823.8999996185303,"domainLookupEnd":823.8999996185303,"domainLookupStart":823.8999996185303,"fetchStart":823.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":941.1999998092651,"responseEnd":983.6999998092651,"responseStart":982.1999998092651,"secureConnectionStart":823.8999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":78,"responseStart":235,"responseEnd":252,"domLoading":239,"domInteractive":962,"domContentLoadedEventStart":962,"domContentLoadedEventEnd":1007,"domComplete":1335,"loadEventStart":1335,"loadEventEnd":1336,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":939.8999996185303},{"name":"bigPipe.sidebar-id.end","time":940.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":940.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":942.0999999046326},{"name":"activityTabFullyLoaded","time":1024.6999998092651}],"measures":[],"correlationId":"992d52c650bc73","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I needed this for testing of some other stuff so I wrote a patch for it (attached to the issue).