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

# external-call-in-transaction

> An external call is awaited inside a database transaction, holding its connection and locks.

## What it flags

An external call is awaited inside a database transaction callback, holding the connection and locks until it returns.

## How to review or fix

Move it before the transaction or after commit; side effects cannot roll back.

## Configuration

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

```json theme={null}
{
  "rules": { "external-call-in-transaction": "off" }
}
```


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