Elgg/Elgg — pull request #446 by mrclay (2012-11-26 21:12:33+00:00)
Title: Fixes #4929: Optimize elgg_get_entities and add attribute loader

This implements the elgg_get_entities optimization described in http://trac.elgg.org/ticket/4929

This also introduces an attribute loader to both clean up attribute loading, but also avoids unnecessary secondary table queries for objects, users, groups, and sites (this optimization was already done in plugins).

All tests pass!