Hi,
I was wondering if there is a specific reason why delete_all does not
accept limits? Ultimately, I want to achieve batched deletes in my
application and something like delete_in_batches or even delete_allthat
accepts limits would be useful.
I can try adding this but wanted to get some
On Apr 3, 2014, at 2:28 PM, Isha i...@jadedpixel.com wrote:
Hi,
I was wondering if there is a specific reason why delete_all does not accept
limits? Ultimately, I want to achieve batched deletes in my application and
something like delete_in_batches or even delete_allthat accepts limits
In addition to Matt's suggestion, there is a usual workaround for this
that's achieved by copying all ids in batches to a separate table then
joining on it. I guess it's tricky to achieve with Rails given this table
dependency. How would you solve it if it proves needed?
On Thu, Apr 3, 2014 at