D1 CPU and memory reset errors
Error · d1
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.`
Paid plan
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
- D1 error listOfficial
- D1 limitsOfficial