Type:
Task
Priority:
Critical
Resolution:
Fixed
SYNTAX
An index can be ignored in the following way:
1) Adding IGNORED to the key specification in CREATE TABLE
Example
CREATE TABLE t1(a INT , key key1(a) IGNORE );
2) Adding IGNORED to the key specification in CREATE INDEX
Example
CREATE INDEX key1 on t1 (a) IGNORE ;
3) Adding IGNORED to the key in the ALTER statement
New syntax: ALTER TABLE table_name ALTER INDEX key_name ignorability
ignorability:
IGNORE_SYM
NOT IGNORE_SYM
Example:
ALTER TABLE t1 ADD INDEX key1 IGNORE ;
Specifications
Store the information about the ignorability of the index in the FRM.
A primary index cannot be made IGNORABLE.
A non-nullable unique key that is promoted to a primary key cannot be made IGNORABLE.
CHANGES in the output of SHOW CREATE TABLE and SHOW INDEXES|KEYS to show if the index is IGNORED or not.
An ALTER INDEX operation should use the INPLACE algorithm by default.
{"report":{"fcp":1309.3000000715256,"ttfb":259.2000000476837,"pageVisibility":"visible","entityId":49351,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"bb385615-e876-4980-8ead-5dd12096c527","navigationType":0,"readyForUser":1421.1000000238419,"redirectCount":0,"resourceLoadedEnd":1727.1000000238419,"resourceLoadedStart":267.5,"resourceTiming":[{"duration":402.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":267.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":669.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":402.2000000476837,"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":268.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":670.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":411.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":268.3000000715256,"connectEnd":268.3000000715256,"connectStart":268.3000000715256,"domainLookupEnd":268.3000000715256,"domainLookupStart":268.3000000715256,"fetchStart":268.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":268.3000000715256,"responseEnd":679.3999999761581,"responseStart":679.3999999761581,"secureConnectionStart":268.3000000715256},{"duration":490.39999997615814,"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":268.60000002384186,"connectEnd":268.60000002384186,"connectStart":268.60000002384186,"domainLookupEnd":268.60000002384186,"domainLookupStart":268.60000002384186,"fetchStart":268.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":268.60000002384186,"responseEnd":759,"responseStart":759,"secureConnectionStart":268.60000002384186},{"duration":494.8000000715256,"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":268.89999997615814,"connectEnd":268.89999997615814,"connectStart":268.89999997615814,"domainLookupEnd":268.89999997615814,"domainLookupStart":268.89999997615814,"fetchStart":268.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":268.89999997615814,"responseEnd":763.7000000476837,"responseStart":763.7000000476837,"secureConnectionStart":268.89999997615814},{"duration":495.10000002384186,"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":269.10000002384186,"connectEnd":269.10000002384186,"connectStart":269.10000002384186,"domainLookupEnd":269.10000002384186,"domainLookupStart":269.10000002384186,"fetchStart":269.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":269.10000002384186,"responseEnd":764.2000000476837,"responseStart":764.2000000476837,"secureConnectionStart":269.10000002384186},{"duration":491.7000000476837,"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":272.89999997615814,"connectEnd":272.89999997615814,"connectStart":272.89999997615814,"domainLookupEnd":272.89999997615814,"domainLookupStart":272.89999997615814,"fetchStart":272.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":272.89999997615814,"responseEnd":764.6000000238419,"responseStart":764.6000000238419,"secureConnectionStart":272.89999997615814},{"duration":615.2000000476837,"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":273.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":888.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":491.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":273.3000000715256,"connectEnd":273.3000000715256,"connectStart":273.3000000715256,"domainLookupEnd":273.3000000715256,"domainLookupStart":273.3000000715256,"fetchStart":273.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":273.3000000715256,"responseEnd":765,"responseStart":765,"secureConnectionStart":273.3000000715256},{"duration":615.1000000238419,"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":273.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":888.5,"responseStart":0,"secureConnectionStart":0},{"duration":492,"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":273.60000002384186,"connectEnd":273.60000002384186,"connectStart":273.60000002384186,"domainLookupEnd":273.60000002384186,"domainLookupStart":273.60000002384186,"fetchStart":273.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":273.60000002384186,"responseEnd":765.6000000238419,"responseStart":765.6000000238419,"secureConnectionStart":273.60000002384186},{"duration":718.6999999284744,"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":274.8000000715256,"connectEnd":274.8000000715256,"connectStart":274.8000000715256,"domainLookupEnd":274.8000000715256,"domainLookupStart":274.8000000715256,"fetchStart":274.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":274.8000000715256,"responseEnd":993.5,"responseStart":993.5,"secureConnectionStart":274.8000000715256},{"duration":1452.2000000476837,"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":274.89999997615814,"connectEnd":274.89999997615814,"connectStart":274.89999997615814,"domainLookupEnd":274.89999997615814,"domainLookupStart":274.89999997615814,"fetchStart":274.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":274.89999997615814,"responseEnd":1727.1000000238419,"responseStart":1727.1000000238419,"secureConnectionStart":274.89999997615814},{"duration":114,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":943.3000000715256,"connectEnd":943.3000000715256,"connectStart":943.3000000715256,"domainLookupEnd":943.3000000715256,"domainLookupStart":943.3000000715256,"fetchStart":943.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":943.3000000715256,"responseEnd":1057.3000000715256,"responseStart":1057.3000000715256,"secureConnectionStart":943.3000000715256},{"duration":583.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1225.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1225.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1809.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":558.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1226.7000000476837,"connectEnd":1226.7000000476837,"connectStart":1226.7000000476837,"domainLookupEnd":1226.7000000476837,"domainLookupStart":1226.7000000476837,"fetchStart":1226.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1226.7000000476837,"responseEnd":1785,"responseStart":1785,"secureConnectionStart":1226.7000000476837},{"duration":566.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1227.1000000238419,"connectEnd":1227.1000000238419,"connectStart":1227.1000000238419,"domainLookupEnd":1227.1000000238419,"domainLookupStart":1227.1000000238419,"fetchStart":1227.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":1227.1000000238419,"responseEnd":1793.3000000715256,"responseStart":1793.3000000715256,"secureConnectionStart":1227.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":89,"responseStart":260,"responseEnd":262,"domLoading":265,"domInteractive":1761,"domContentLoadedEventStart":1761,"domContentLoadedEventEnd":1809,"domComplete":2486,"loadEventStart":2486,"loadEventEnd":2487,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1735.8000000715256},{"name":"bigPipe.sidebar-id.end","time":1736.8000000715256},{"name":"bigPipe.activity-panel-pipe-id.start","time":1736.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1738.5},{"name":"activityTabFullyLoaded","time":1866}],"measures":[],"correlationId":"891d1fa5ec7742","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":110,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks, Colm and Sergei. In addition to the invisible index on an invisible column, I can think of two others: The hidden 6-byte PK that InnoDB uses as a last resort. And the extra column added for InnoDB FULLTEXT.
That's 3 cases. Is there a list somewhere of all such odd indexes? Perhaps such a list would be made as a checklist on whether all cases are being handled for this feature request and other situations.