hi,
if you use eager loading (with :has_many associations) you can reduce your 20 or so queries to 1.