Avoid N+1 queries (batch or join) | BeforeMerge Rules | BeforeMerge