# X_QUERY_SCALES_WITH_ROWS

## Means

a statement shape runs once per row: its count grows with the rows seeded

## Typical cause

a loop over rows issuing one statement each — an N+1 — that no test named

## Fix

`x exercise <primitive> --json` — after preload() of the relation the loop reads, or expectedQueryLoop('<why>', fn) around a deliberate loop

[Testing](/error-codes#testing)
