Skip to main content

What it flags

findMany({ distinct }) reads every matching row and de-duplicates in Prisma’s query engine, not with SQL DISTINCT.

How to review or fix

Use groupBy or a raw SELECT DISTINCT. Quiet when the nativeDistinct preview feature is enabled.

Configuration

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