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

# python-n-plus-one-orm-loop

> An ORM query executes inside a Python loop instead of using eager loading or batching.

## What it flags

An ORM query executes inside a Python loop instead of using eager loading or batching.

## Example

An ORM query executes inside a Python `for` loop instead of eager loading or batching.

## Configuration

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

```json theme={null}
{
  "rules": { "python-n-plus-one-orm-loop": "off" }
}
```


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