Re:Worst Bug Ever
by bartonfink on Monday January 21, 2013 @11:28AM
(#5092137)
Another good approach is to replace 'delete' with 'select count(1)' or something similar. The where clause can remain the same, you know how many rows will be affected and there's less overhead of remembering to set up a transaction, writing an update statement, rolling back, etc.
[ Parent
| on HN ]