Check and fix N+1 queries for board issues
When querying issues for boards, we have a couple of N+1 issues when
- requesting
authorfield and 2. board's parent isgroupfor projects.
@acroitor initially discovered the issue and noted in !71164 (comment 690105115):
I think I've also noticed an N+1 on
authorandprojectyou may want to check it and see if we can preload the 2 associations.
It's highly likely that we have N+1 for more fields like assignees.
Edited by euko