Forum: Ruby on Rails RE: Transactions and migrations (lots of records)???

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E94ca0face81fe54d0486b397ea3412d?d=identicon&s=25 Campano, David (Guest)
on 2006-04-26 16:48
(Received via mailing list)
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
}
This topic is locked and can not be replied to.