Ruby on Rails, Activerecord, MySQL, Database.
only run 2 queries. One to load all the users, and another to load all posts associated with those users. Use `find_each` When Loading a Large Amount of Records This next tip will actually increase the number of queries made, but it’s meant to reduce memory use when loading a huge amount of