I\'m looking for a Ruby ORM to replace ActiveRecord. I\'ve been looking at Sequel and DataMapper. They look pretty good however none of them seems to do the basic: not loading e
This code works faster than find_in_batches in ActiveRecord
id_max = table.get(:max[:id]) id_min = table.get(:min[:id]) n=1000 (0..(id_max-id_min)/n).map.each do |i| table.filter(:id >= id_min+n*i, :id < id_min+n*(i+1)).each {|row|} end