reduce limit in badges query