The INNODB_FT_DELETED table records rows that
are deleted from the FULLTEXT index for an
InnoDB table. To avoid expensive index
reorganization during DML operations for an
InnoDB FULLTEXT 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 the
OPTIMIZE TABLE statement for the
InnoDB table. See
Optimizing InnoDB Full-Text Indexes for more information.
This table initially appears empty, until you set the value of the
configuration variable
innodb_ft_aux_table to the name
(including the database name) of the table that contains the
FULLTEXT index, for example
test/articles.
For related usage information and examples, see Section 14.15.4, “InnoDB INFORMATION_SCHEMA FULLTEXT Index Tables”.
Table 21.10 INNODB_FT_DELETED Columns
| Column name | Description |
|---|---|
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 by
InnoDB when the table does not contain
a suitable column. This value is used to skip rows in the
innodb_ft_index_table table,
when you do text searches before data for deleted rows is
physically removed from the FULLTEXT
index by an OPTIMIZE TABLE
statement. See Optimizing InnoDB Full-Text Indexes for
more information. |
Example:
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_FT_DELETED;
+--------+
| DOC_ID |
+--------+
| 6 |
| 7 |
| 8 |
+--------+
Notes:
Use DESCRIBE or
SHOW COLUMNS to view additional
information about the columns of this table including data
types and default values.
You must have the PROCESS
privilege to query this table.
For more information about InnoDB
FULLTEXT search, see
Section 14.8.10, “InnoDB FULLTEXT Indexes”, and
Section 12.9, “Full-Text Search Functions”.