There is a case of false positive N+1 warnings for a model with two associations pointing to the same table e.g.:
class AccountTransfer
belongs_to :source, class_name: 'Account'
belongs_to :target, class_name: 'Account'
end
Even if we include both associations to a fetching query, we get a warning for N+1s. I suspect that it fails to recognise that the extra query is part of the preloading.
There is a case of false positive N+1 warnings for a model with two associations pointing to the same table e.g.:
Even if we include both associations to a fetching query, we get a warning for N+1s. I suspect that it fails to recognise that the extra query is part of the preloading.