solve N+1 problem in boards#index