Katello/katello — pull request #4840 by parthaa (2014-12-03 00:29:55+00:00)
Title: Refs #8554 - Initial stab at N + 1

Fixed 3 places where N + 1 queries occured
1) Product index
2) Repository Index
3) Content View Index

Want to get a take on whether this is the way to proceeed fixing this
Look at
http://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations
for more info on N + 1