IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Just throw the list in another table
And either do an IN clause or a direct join:
\n   DELETE MyTable\n   FROM\n      MyTable myt,\n      DelTable dlt\n   WHERE (myt.key = dlt.key)\n

New But won't I just be spending the time ...
inserting the elements into the other table. This is a one time event.
New If it's a one time event...
...i don't think it matters which way you do it.

IN clauses are fairly efficient if the column is indexed. Must admit that I've never heard of the 500 limit on the items. Just tried an IN clause with 1028 entries and it worked fine. Think your DBA is thinking of 6.5 days.
     Bulk delete - (bluke) - (6)
         Partition the DELETE. - (static) - (2)
             MySQL != MS-SQL - (altmann) - (1)
                 D'oh. Missed that. Sorry. -NT - (static)
         Just throw the list in another table - (ChrisR) - (2)
             But won't I just be spending the time ... - (bluke) - (1)
                 If it's a one time event... - (ChrisR)

That'll be $8.50, Mac.
72 ms