4 ms·
This. Model.transaction do ... end is not that hard. Also, in Rails 2.3 you can do .find_each, which will iterate over each record in 1000-chunk batches.
by rufo 17y ago
This. Model.transaction do ... end is not that hard.
Also, in Rails 2.3 you can do .find_each, which will iterate over each record in 1000-chunk batches.