I have a table (InnoDB) with tens of millions of rows and several indexes. I need to delete a few million rows by primary key. This operation is rather slower than I'd like; what can I do to speed it up?
There are ongoing processes that do INSERTs and SELECTs on this table. If I can do it without interfering with those processes, that would be great, but it's not absolutely necessary. Also (I'm not sure if it makes a difference) there are no foreign keys in this DB.