SQL queries · Content tag
Browse cases and guides discussing sql queries.
5 matching items
Cases · 3
MXGA: a reported $209.37 bill after a D1 query bug.
@luoleiorg describes a D1 query bug that raised usage roughly 1,400-fold. An initial $200-plus report becomes $209.37 in a later post; the author says Cloudflare waived the previous month’s entire invoice after a support request.
Reported amount · USD
$209.37
Mircea Trofimciuc: agent count(*) queries on D1 and a reported $700+ bill.
Mircea Trofimciuc (@MirceaTrofim) reports a $700+ bill after an AI agent ran a few count(*) queries on a large D1 table to get the number of records. He says support won't credit the account and that he was charged, and asks @CloudflareDev for help.
Reported amount · USD
$700
D1 row reads: a $134.14 invoice from unindexed queries.
Justin Ahinon reports that his April 21, 2026 Cloudflare invoice was $134.14, with $127.60 from 127,599,130,859 D1 row reads on a 765,000-row database. He attributes it to full table scans in queries that ran on every page load.
Reported amount · USD
$134.14
Guides · 2
After a $10,000 loop bill: budget alerts and a cost-audit prompt for vibe-coded projects
铁柱AGI (@cgnot996) writes an X article that walks through creating a Cloudflare budget alert, explains why it is only a notice, lists cost-amplifying code patterns, and gives a read-only audit prompt and steps for when a bill has already spiked.
D1 pricing and free daily row limits
Cloudflare explains D1 read/write billing, free daily limits, and usage tracking.