billflare.

FlareCost: what a D1 full table scan costs past 25 billion rows read

FlareCost's scenario scans the same 5-million-row table 200 times a day for 30 days: 30 billion rows read, 5 billion of them billed at $0.001 per million, totalling $10.00 on Paid including the $5 minimum. It stresses that D1 bills rows scanned, not rows returned, and that indexes cut reads but add a written row when the indexed column changes. Rates as published on 2026-11-02.

Products
D1
Source
Community resourceFlareCost
Author
FlareCost

Key points

  • It cites the pricing page example where SELECT * over 5,000 rows counts as 5,000 rows read.
  • It warns that Free-plan lines at $0 can still mean an outage (error 1027, 1102 or a D1 quota error), and that daily free caps are not monthly pools.

Original sources

  1. Last updated

    FlareCost: what a D1 full table scan costs past 25 billion rows read

    Open original source

    FlareCost's scenario scans the same 5-million-row table 200 times a day for 30 days: 30 billion rows read, 5 billion of them billed at $0.001 per million, totalling $10.00 on Paid including the $5 minimum. It stresses that D1 bills rows scanned, not rows returned, and that indexes cut reads but add a written row when the indexed column changes. Rates as published on 2026-11-02.

  2. FlareCost replies that D1 bills rows scanned, not returned: Workers Paid includes 25 billion rows read a month, then $0.001 per million, so index the columns you filter on.

    Read on 𝕏

    FlareCost

    @FlareCost · Original 𝕏 post

    @VamsiBuilds Nice move. One D1 detail: you're billed on rows scanned, not rows returned. Workers Paid includes 25 billion rows read a month, then $0.001 per million, so indexing the columns you filter on keeps scans cheap. Worked example: https://t.co/jPL7Qf3m1o
Author experienceD1 +1

Nash: 115,937 D1 call-log rows since 22 October, after logging every uptime-monitor 402; sampling 1 in 100 cut the noise

On 2026-11-04, X user @NashBriggsy (Nash) wrote that their D1 call log had 115,937 rows since 22 October. Every request to their agent tools wrote one row with 17 columns (tool, status, paid, price, payer, ms, country, user agent and more). The flow was: the agent asks, gets a 402 with the price, signs, the facilitator settles, the tool answers, and the Worker writes the row. What went wrong, the author says, is that they also logged every uptime monitor’s 402, and that ran up the D1 bill. On 29 October they started sampling monitor 402s at 1 in 100 and added a time index for reports. The post does not state a dollar amount.

D1

Kun Save Point (@Savepoint_kk): a D1 bug rewrote unchanged data into a $2,739.12 bill; $2,141 goodwill credit granted.

Kun Save Point (@Savepoint_kk), an indie developer who says he recently lost his job, says a bug repeatedly rewrote unchanged data while inefficient queries amplified reads, producing a $2,739.12 Cloudflare bill already paid via PayPal (D1 rows written $2,641.00, rows read $64.06, other services $34.06); he says his bills were usually under $10 a month. Cloudflare granted a $2,141 goodwill account credit under case #02391058. He asks for it to be converted into a refund to the original PayPal payment, or at least for relief on the $2,641 write charges, and later writes that the initial request was declined and has been reopened for additional review. On October 25 he adds that he missed the only alert email Cloudflare sent, whose amount was not particularly high, and received no further warning before the large card charge; on October 26 he writes that the refund request to the original payment method is still under further review. On November 10 he posts a timeline saying that after following up on November 10–11, support again stated the $2,141 could only remain as account credit and the remaining $598.12 was still undecided while the ticket was being closed.

Community resourceWorkers +5

FlareCost: Free plan limits that fail the request (not bill)

FlareCost’s free-plan-limits page lists Workers, KV, D1, R2, Durable Objects and Queues Free meters in one table: daily Free limits reset at 00:00 UTC and fail the request instead of billing, except R2 which bills past its monthly free tier on any plan. Reviewed against official pricing pages on 2026-11-02.