N+1 problem solution.