The time required to delete individual rows is exactly
        proportional to the number of indexes. To delete rows more
        quickly, you can increase the size of the key cache by
        increasing the key_buffer_size
        system variable. See Section 7.5.3, “Tuning Server Parameters”.
      
        To delete all rows from a table, TRUNCATE TABLE
         is faster than
        than tbl_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. See Section 12.2.11, “tbl_nameTRUNCATE TABLE Syntax”.
      

User Comments
Add your own comment.