Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 43.3Mb
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.3Kb
Man Pages (Zip) - 402.5Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  / ...  / INFORMATION_SCHEMA Tables  / INFORMATION_SCHEMA InnoDB Tables  /  The INFORMATION_SCHEMA INNODB_FT_DELETED Table

28.4.17 The INFORMATION_SCHEMA INNODB_FT_DELETED Table

TheINNODB_FT_DELETED table stores rows that are deleted from theFULLTEXT index for anInnoDB table. To avoid expensive index reorganization during DML operations for anInnoDBFULLTEXT index, the information about newly deleted words is stored separately, filtered out of search results when you do a text search, and removed from the main search index only when you issue anOPTIMIZE TABLE statement for theInnoDB table. For more information, seeOptimizing InnoDB Full-Text Indexes.

This table is empty initially. Before querying it, set the value of theinnodb_ft_aux_table system variable to the name (including the database name) of the table that contains theFULLTEXT index (for example,test/articles).

For related usage information and examples, seeSection 17.15.4, “InnoDB INFORMATION_SCHEMA FULLTEXT Index Tables”.

TheINNODB_FT_DELETED table has these columns:

  • DOC_ID

    The document ID of the newly deleted row. This value might reflect the value of an ID column that you defined for the underlying table, or it can be a sequence value generated byInnoDB when the table contains no suitable column. This value is used when you perform text searches, to skip rows in theINNODB_FT_INDEX_TABLE table before data for deleted rows is physically removed from theFULLTEXT index by anOPTIMIZE TABLE statement. For more information, seeOptimizing InnoDB Full-Text Indexes.

Example

mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DELETED;+--------+| DOC_ID |+--------+|      6 ||      7 ||      8 |+--------+

Notes