D1 CPU and memory reset errors

Error · d1

Reviewed 2026-10-25 · against the official Cloudflare pricing pages listed under Sources

A query blew the database isolate.

Free plan

Documented messages: `D1 DB's isolate exceeded its memory limit and was reset.` and `D1 DB exceeded its CPU time limit and was reset.`

The CPU message mentions examples such as scanning a table on the order of 9 GB or a large import.

What it means

The docs say to split the work. A Worker also only opens six D1 connections at once.

What it does to a bill

These resets are not a line item. The rows the query already scanned can still count.

Sources