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

# migration-set-not-null-scan

> SET NOT NULL scans the whole table while holding a lock.

## What it flags

A PostgreSQL `SET NOT NULL` that can scan the whole table because no validated `CHECK (... IS NOT NULL)` proves the column has no nulls.

## Configuration

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

```json theme={null}
{
  "rules": { "migration-set-not-null-scan": "off" }
}
```


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