inefficientの履歴
Looping through a collection of records from the database
(using the +all+ method, for example) is very inefficient
since it will try to instantiate all the objects at once.https://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/batches.rb#L4