Elgg/Elgg — pull request #6990 by mrclay (2014-06-24 23:34:38+00:00)
Title: perf(likes): reduces number of queries when showing likes in lists

For each entity in a list, this preloads the total # of likes and whether or not the current user likes it in as few queries as possible.

For a list of N like-able entities this would remove about 2N-2 queries.

Fixes #6941