Re:Five Common Rails Mistakes
by sanderjd on Sunday May 06, 2012 @12:23PM
(#3935482)
The second variant seems much better to me - in the first variant the size of the DELETE query itself is proportional to the number of published posts, so for very large numbers of published posts you'll end up sending a lot of data over the network, and may even hit your max_allowed_packet size (though it defaults to 1GB, which would be a lot of published posts!).
[ Parent
| on HN ]
There are no comments on this comment yet.