> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# prisma-relation-count-in-list

> A paged Prisma findMany selects a relation _count computed over the whole related table.

## 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:

```json theme={null}
{
  "rules": { "prisma-relation-count-in-list": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.