MySQL Forums
Forum List  »  Italian

Slow DELETE query - pls help
Posted by: Luca Nerotti
Date: July 21, 2009 01:47AM

The DB works great in reading, but when i perform a DELETE on the table, only the FIRST delete take about 1 minute to delete a single line.
After that, other DELETE command are very fast.
It seems that the table have a "lock" function in read mode and after the first "delete" command every "delete" query are very fast.

The query is like: "delete from table where id3 = '123' limit 1"

This is my table:
Record: 2,596,142
Type: MyISAM
Collation: latin1_swedish_ci
Size: 83,1 MiB

Structure:
id1: smallint(6)
id2: smallint(6)
id3: mediumint(9)

Index:
id1 : BTREE - Unique: no
id2 : BTREE - Unique: no
id3 : BTREE - Unique: no

Options: ReplyQuote


Subject
Views
Written By
Posted
Slow DELETE query - pls help
4314
July 21, 2009 01:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.