I need to mass-update many thousands of records, and I would like to process the updates in batches. First, I tried:
Foo.where(bar: \'bar\').find_in_batches.upda
I've written a small method to invoke update_all in batches:
https://gist.github.com/VarunNatraaj/420c638d544be59eef85
Hope it is useful! :)