-
Notifications
You must be signed in to change notification settings - Fork 451
Open
Labels
Description
Bullet is reporting this on my index page:
USE eager loading detected
Budget => [:client]
Add to your finder: :includes => [:client]
USE eager loading detected
Expenditure => [:project]
Add to your finder: :includes => [:project]
USE eager loading detected
Expenditure => [:vendor]
Add to your finder: :includes => [:vendor]
USE eager loading detected
Expenditure => [:budget]
Add to your finder: :includes => [:budget]
The thing is I have all these includes already added:
Expenditure.includes(:vendor, :budget)
Expenditure.includes(:budget, :vendor, :project)
Budget.includes(:client)
The if I add :projects to the first include I then get:
AVOID eager loading detected
Budget => [:project]
Remove from your finder: :includes => [:project]
For some background Expenditures belong to Budget and can have a vendor. Budget belongs to Project and Projects belong to Client.
I am either missing some nested includes here of these are false positives.
amyspark, jotolo, drEnilight, krzkrzkrz, thaispeixoto and 5 more