Elgg/Elgg — pull request #165 by jdalsem (2012-02-23 09:40:19+00:00)
Title: Optimized message count

EPIC life saver. Get count in query instead of creating numerous objects and count those. This is a big issue when having 100+ unread messages as it produces 200 queries before this fix and only 1 after this fix. This is also the case in Elgg 1.7. I advice this should also be fixed on community.elgg.org as i have 200 unread messages :)