RubyGems.org

each_batched

0.1.3

ActiveRecord::Batches#find_in_batches has some gotchas. This library provides alternate algorithms that may better suit you, in certain circumstances. Specifically: you can order your results other than by primary key, and you can limit your batches to just a certain range of results not only all records.

installgem install each_batched
Authors

David Burry

3,212 total downloads 724 for this version
Owners

69a7bbe1ddad0396f57f2ff4eca528e8

Gemfile
gem 'each_batched', '~> 0.1.3'
Versions
  1. 0.1.3 March 17, 2013 (58 KB)
  2. 0.1.2 February 11, 2013 (49.5 KB)
  3. 0.1.1 November 7, 2012 (41 KB)
  4. 0.1.0 September 11, 2011 (102 KB)
Runtime Dependencies
  1. rails >= 3.0
  2. valium >= 0