I wanted to iterate over an active record in batches. Found a great example but for my needs I wanted to walk backwards over the batch. Needless to say it’s not possible. I don’t mind find_each limited to the id field, but DESC would be nice.
Archive for the ‘Ruby on Rails’ Category
Active record find_each in batches
Posted in Ruby on Rails, tagged ruby active record, find each on January 13, 2011 | Leave a Comment »