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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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)
Here is a thought of how you might be able to do it, but I haven't
tested it.  This is just pseudocode, but someone might be able to
elaborate further.

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

This topic is locked and can not be replied to.