What's the difference between find_each, find_in_batches, in_batches in Rails?
Sometimes we will use klass_name.all to get records from the database.
That’ll be ok, if we only have 100 records in the database.
However, using klass_name.all might not be the best way to get records, especially when we need to query large numbers ...
lynnbright.com2 min read