@deciob am I right that you need top 5 for the dashboard statistics? if that is the case maybe it makes sense to order & limit here rather than return all stats? limit could be passed in as parameter.