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

# drizzle-last-insert-id

> A MySQL insert is followed by an extra query for its generated ID.

## What it flags

A MySQL insert is followed by a separate query for the last generated ID.

## How to review or fix

Review using the insert result directly, especially when the database handle uses a connection pool.

## Configuration

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

```json theme={null}
{
  "rules": { "drizzle-last-insert-id": "off" }
}
```


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