Use ActiveRecord#size over #count
Use ActiveRecord#size over #count

#count always fires a COUNT(*) SQL query even when we have preloaded the
association record.

#size will use the preloaded array-like object's size instead, saving us an extra
query.

codeschool/compliments,codeschool/compliments