RE: Transactions and migrations (lots of records)?


#1

Oops, that code should have been…

maxcount = Order.count
(0…maxcount).step(100) { |i|
transaction do
orders = Order.find(:all, :limit => 100, :offset => i)
## Then do processing here

end

}