Skip to main content

What it flags

A paged findMany selects _count of a relation, which Prisma computes over the whole related table.

How to review or fix

Fetch the page, then groupBy for the page ids and merge the counts.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: