i am doing this:
delete from calibration_2009 where rowid in
(SELECT rowid FROM `qcvalues`.`batchinfo_2009` where reporttime like "%2010%");
i need to have about 250k rows deleted.
why does it take such a long time? is there a quicker way to do this?
You should have an index on
calibration_2009 (rowid)for this to work fast.I assume it’s a
PRIMARY KEYanyway, but you better check.