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

# guard-query-per-request

> A guard or per-request hook runs a database query before every handler.

## What it flags

A guard or similar per-request hook runs a database query before every handler.

## How to review or fix

Cache the lookup with a short TTL and explicit invalidation, or carry the claims in the token.

## Configuration

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

```json theme={null}
{
  "rules": { "guard-query-per-request": "off" }
}
```


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