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

# mongo-disk-sort

> A MongoDB sort spilled to disk.

## What it flags

A MongoDB sort with at least 1 MiB of reported spill bytes or spill storage, or at least eight spills.

## How to review or fix

Check whether earlier filtering or an index can reduce sorting work.

## Configuration

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

```json theme={null}
{
  "rules": { "mongo-disk-sort": "off" }
}
```


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