Ruby on Rails, Activerecord, MySQL, Database.
the memory use. In the find_each example, we are increasing the number of queries but reducing the memory use. As such, there is no absolute rule for whether it’s more important to reduce the number of queries or reduce memory use. It depends on the situation, so exercise good judgment. Bullet Gem