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":1026.5999999046326,"ttfb":309.40000009536743,"pageVisibility":"visible","entityId":49351,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7dc8cc94-293e-4f88-af16-db40530f92ef","navigationType":0,"readyForUser":1140.5,"redirectCount":0,"resourceLoadedEnd":885.5,"resourceLoadedStart":314.30000019073486,"resourceTiming":[{"duration":79.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":314.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":393.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":82.80000019073486,"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":314.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":397.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":266.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":314.80000019073486,"connectEnd":314.80000019073486,"connectStart":314.80000019073486,"domainLookupEnd":314.80000019073486,"domainLookupStart":314.80000019073486,"fetchStart":314.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":401.80000019073486,"responseEnd":581.3000001907349,"responseStart":417.30000019073486,"secureConnectionStart":314.80000019073486},{"duration":415.7000002861023,"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":315,"connectEnd":400.2000002861023,"connectStart":400.2000002861023,"domainLookupEnd":400.2000002861023,"domainLookupStart":400.2000002861023,"fetchStart":315,"redirectEnd":0,"redirectStart":0,"requestStart":400.5,"responseEnd":730.7000002861023,"responseStart":413.09999990463257,"secureConnectionStart":400.2000002861023},{"duration":103.90000009536743,"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":315.09999990463257,"connectEnd":315.09999990463257,"connectStart":315.09999990463257,"domainLookupEnd":315.09999990463257,"domainLookupStart":315.09999990463257,"fetchStart":315.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":402,"responseEnd":419,"responseStart":415.5,"secureConnectionStart":315.09999990463257},{"duration":110.7999997138977,"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":315.30000019073486,"connectEnd":315.30000019073486,"connectStart":315.30000019073486,"domainLookupEnd":315.30000019073486,"domainLookupStart":315.30000019073486,"fetchStart":315.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":406.40000009536743,"responseEnd":426.09999990463257,"responseStart":424.80000019073486,"secureConnectionStart":315.30000019073486},{"duration":115.2000002861023,"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":315.5,"connectEnd":315.5,"connectStart":315.5,"domainLookupEnd":315.5,"domainLookupStart":315.5,"fetchStart":315.5,"redirectEnd":0,"redirectStart":0,"requestStart":406.59999990463257,"responseEnd":430.7000002861023,"responseStart":426.80000019073486,"secureConnectionStart":315.5},{"duration":87.7000002861023,"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":315.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":403.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":115.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":315.90000009536743,"connectEnd":315.90000009536743,"connectStart":315.90000009536743,"domainLookupEnd":315.90000009536743,"domainLookupStart":315.90000009536743,"fetchStart":315.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":406.59999990463257,"responseEnd":431.59999990463257,"responseStart":427.40000009536743,"secureConnectionStart":315.90000009536743},{"duration":90,"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":316,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":406,"responseStart":0,"secureConnectionStart":0},{"duration":119.59999990463257,"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":316.2000002861023,"connectEnd":316.2000002861023,"connectStart":316.2000002861023,"domainLookupEnd":316.2000002861023,"domainLookupStart":316.2000002861023,"fetchStart":316.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":409.80000019073486,"responseEnd":435.80000019073486,"responseStart":433.40000009536743,"secureConnectionStart":316.2000002861023},{"duration":389.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":322.40000009536743,"connectEnd":322.40000009536743,"connectStart":322.40000009536743,"domainLookupEnd":322.40000009536743,"domainLookupStart":322.40000009536743,"fetchStart":322.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":696.2000002861023,"responseEnd":712.0999999046326,"responseStart":710.5,"secureConnectionStart":322.40000009536743},{"duration":563,"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":322.5,"connectEnd":322.5,"connectStart":322.5,"domainLookupEnd":322.5,"domainLookupStart":322.5,"fetchStart":322.5,"redirectEnd":0,"redirectStart":0,"requestStart":871.0999999046326,"responseEnd":885.5,"responseStart":883.7000002861023,"secureConnectionStart":322.5},{"duration":186.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":733.8000001907349,"connectEnd":733.8000001907349,"connectStart":733.8000001907349,"domainLookupEnd":733.8000001907349,"domainLookupStart":733.8000001907349,"fetchStart":733.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":884.7000002861023,"responseEnd":920.0999999046326,"responseStart":918.9000000953674,"secureConnectionStart":733.8000001907349}],"fetchStart":0,"domainLookupStart":94,"domainLookupEnd":95,"connectStart":95,"connectEnd":114,"secureConnectionStart":103,"requestStart":115,"responseStart":309,"responseEnd":320,"domLoading":313,"domInteractive":1200,"domContentLoadedEventStart":1200,"domContentLoadedEventEnd":1263,"domComplete":1909,"loadEventStart":1909,"loadEventEnd":1910,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1177.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1178.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1178.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1180.3000001907349},{"name":"activityTabFullyLoaded","time":1280.7000002861023}],"measures":[],"correlationId":"afe1cdf3794365","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":118,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"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.