Related Documentation Download this Manual
PDF (US Ltr) - 40.4Mb
PDF (A4) - 40.5Mb
Man Pages (TGZ) - 259.5Kb
Man Pages (Zip) - 366.7Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
PDF (A4) - 40.5Mb
Man Pages (TGZ) - 259.5Kb
Man Pages (Zip) - 366.7Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
MySQL 9.1 Reference Manual / ... / Optimization / Optimizing SQL Statements / Optimizing Data Change Statements / Optimizing DELETE Statements
The time required to delete individual rows in aMyISAM table is exactly proportional to the number of indexes. To delete rows more quickly, you can increase the size of the key cache by increasing thekey_buffer_size system variable. SeeSection 7.1.1, “Configuring the Server”.
To delete all rows from aMyISAM table,TRUNCATE TABLE is faster thantbl_nameDELETE FROM. Truncate operations are not transaction-safe; an error occurs when attempting one in the course of an active transaction or active table lock. SeeSection 15.1.37, “TRUNCATE TABLE Statement”.tbl_name
Related Documentation Download this Manual
PDF (US Ltr) - 40.4Mb
PDF (A4) - 40.5Mb
Man Pages (TGZ) - 259.5Kb
Man Pages (Zip) - 366.7Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
PDF (A4) - 40.5Mb
Man Pages (TGZ) - 259.5Kb
Man Pages (Zip) - 366.7Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb