### 26.4.14 The INFORMATION\_SCHEMA INNODB\_FT\_BEING\_DELETED Table

[]()

 The [`INNODB_FT_BEING_DELETED`](information-schema-innodb-ft-being-deleted-table.html) table provides a snapshot of the [`INNODB_FT_DELETED`](information-schema-innodb-ft-deleted-table.html) table; it is used only during an [`OPTIMIZE TABLE`](optimize-table.html) maintenance operation. When [`OPTIMIZE TABLE`](optimize-table.html) is run, the [`INNODB_FT_BEING_DELETED`](information-schema-innodb-ft-being-deleted-table.html) table is emptied, and `DOC_ID` values are removed from the [`INNODB_FT_DELETED`](information-schema-innodb-ft-deleted-table.html) table. Because the contents of [`INNODB_FT_BEING_DELETED`](information-schema-innodb-ft-being-deleted-table.html) typically have a short lifetime, this table has limited utility for monitoring or debugging. For information about running [`OPTIMIZE TABLE`](optimize-table.html) on tables with `FULLTEXT` indexes, see [Section 12.10.6, “Fine-Tuning MySQL Full-Text Search”](fulltext-fine-tuning.html).

 This table is empty initially. Before querying it, set the value of the [`innodb_ft_aux_table`](innodb-parameters.html#sysvar_innodb_ft_aux_table) system variable to the name (including the database name) of the table that contains the `FULLTEXT` index (for example, `test/articles`). The output appears similar to the example provided for the [`INNODB_FT_DELETED`](information-schema-innodb-ft-deleted-table.html) table.

 For related usage information and examples, see [Section 15.15.4, “InnoDB INFORMATION\_SCHEMA FULLTEXT Index Tables”](innodb-information-schema-fulltext_index-tables.html).

 The [`INNODB_FT_BEING_DELETED`](information-schema-innodb-ft-being-deleted-table.html) table has these columns:

* `DOC_ID`

   The document ID of the row that is in the process of being deleted. 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 contains no suitable column. This value is used when you perform text searches, to skip rows in the [`INNODB_FT_INDEX_TABLE`](information-schema-innodb-ft-index-table-table.html) table before data for deleted rows is physically removed from the `FULLTEXT` index by an [`OPTIMIZE TABLE`](optimize-table.html) statement. For more information, see [Optimizing InnoDB Full-Text Indexes](fulltext-fine-tuning.html#fulltext-optimize).

#### Notes

* Use the `INFORMATION_SCHEMA` [`COLUMNS`](information-schema-columns-table.html) table or the [`SHOW COLUMNS`](show-columns.html) statement to view additional information about the columns of this table, including data types and default values.

* You must have the [`PROCESS`](privileges-provided.html#priv_process) privilege to query this table.

* For more information about `InnoDB` `FULLTEXT` search, see [Section 15.6.2.4, “InnoDB Full-Text Indexes”](innodb-fulltext-index.html), and [Section 12.10, “Full-Text Search Functions”](fulltext-search.html).

