diff --git a/faq/sql-faq.md b/faq/sql-faq.md index c8cbd05be7705..cfb877072a8e1 100644 --- a/faq/sql-faq.md +++ b/faq/sql-faq.md @@ -187,11 +187,12 @@ SELECT column_name FROM table_name USE INDEX(index_name)WHERE where_conditio TiDB handles the SQL statement using the `schema` of the time and supports online asynchronous DDL change. A DML statement and a DDL statement might be executed at the same time and you must ensure that each statement is executed using the same `schema`. Therefore, when the DML operation meets the ongoing DDL operation, the `Information schema is changed` error might be reported. Some improvements have been made to prevent too many error reportings during the DML operation. -Now, there are still a few reasons for this error reporting (the latter two are unrelated to tables): +Now, there are still a few reasons for this error reporting (only the first one is related to tables): + Some tables involved in the DML operation are the same tables involved in the ongoing DDL operation. + The DML operation goes on for a long time. During this period, many DDL statements have been executed, which causes more than 1024 `schema` version changes. You can modify this default value by modifying the `tidb_max_delta_schema_count` variable. + The TiDB server that accepts the DML request is not able to load `schema information` for a long time (possibly caused by the connection failure between TiDB and PD or TiKV). During this period, many DDL statements have been executed, which causes more than 100 `schema` version changes. ++ After TiDB restarts and before the first DDL operation is executed, the DML operation is executed and then encounters the first DDL operation (which means before the first DDL operation is executed, the transaction corresponding to the DML is started. And after the first `schema` version of the DDL is changed, the transaction corresponding to the DML is committed), this DML operation reports this error. > **Note:** >