How to check if enable/disable keys work?

后端 未结 2 716
清酒与你
清酒与你 2021-01-01 04:54

I have a table with an indexed varchar(256) column.

For faster bulk insert, I disabled keys, insert more than 10 million entries, and then re-enable the

2条回答
  •  自闭症患者
    2021-01-01 05:35

    As you guessed, InnoDB does not support DISABLE/ENABLE KEYS. The warning you got is:

    code 1031 - Table storage engine for 'table_name' doesn't have this option

    As you can see here. To see the warning yourself, run SHOW WARNINGS; after you run the ALTER.

提交回复
热议问题