N+1 detection