refactor query in user.feed to scale better