Keeping view efficient without N+1 problems