Rails, just like many other frameworks, has a lot of magic (and surprises too). Last month, when I had a chance to do a performance tuning for the ActiveRecord #find_in_batches and #find_batch I found some interesting thing about those two similar methods that's worth sharing. But first