5.2.12. Performance das Consultas que Utilizam DELETE
Se você deseja apagar todos os registros em uma tabela, deve
usar TRUNCATE TABLE nome_tabela. See
Secção 6.4.6, “Sintaxe TRUNCATE”.
O tempo para apagar um registro é exatamente proporcional ao
número de índices. Para apagar registros mais rapidamente,
você pode aumentar o tamanho do cache de índices. See
Secção 5.5.2, “Parâmetros de Sintonia do Servidor”.
This is a translation of the MySQL Reference Manual that can be
found at
dev.mysql.com.
The original Reference Manual is in English, and this translation
is not necessarily as up to date as the English version.