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

# go-sql-query-in-loop

> A Go database query executes inside a loop instead of batching.

## What it flags

A Go database query executes inside a loop instead of batching.

## Example

A Go `sql.DB` or ORM query executes inside a `for` loop instead of batching.

## Configuration

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

```json theme={null}
{
  "rules": { "go-sql-query-in-loop": "off" }
}
```


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