Are there any Ruby ORMs which use cursors or smart fetch?

前端 未结 5 598
误落风尘
误落风尘 2021-02-05 07:36

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

5条回答
  •  Happy的楠姐
    2021-02-05 07:56

    ActiveRecord actually has an almost transparent batch mode:

    User.find_each do |user|
      NewsLetter.weekly_deliver(user)
    end
    

提交回复
热议问题