billflare.

D1 on the free plan: unindexed queries burn rows read

风易 (@Michael_liyang) says the costliest thing on the free plan is not writes but queries without an index: D1 bills by rows read and an unindexed query scans the whole table, multiplying rows read (a figure he marks as still to be confirmed). He recommends indexing hot query fields, selecting only needed columns and logging slow queries.

Products
D1
Source
Author experience𝕏 post
Author
风易 (@Michael_liyang)

Key points

  • He says D1 bills by rows read, and one unindexed query scans the whole table so rows read can jump by dozens of times; he labels that multiple as still to be confirmed.
  • His steps: add indexes on frequently queried fields first, select only the columns you need instead of SELECT *, and log slow queries before optimising.
  • He calls indexes the cheapest performance on the free plan and says not to wait for the bill.
  • Cloudflare's D1 pricing page (read 2026-11-13) says queries count as rows read, rows written or both, and its FAQ addresses using an index to reduce the number of rows read by a query.

Original sources

  1. Published

    Original post

    Read on 𝕏

    风易 (@Michael_liyang) says the costliest thing on the free plan is not writes but queries without an index: D1 bills by rows read and an unindexed query scans the whole table, multiplying rows read (a figure he marks as still to be confirmed). He recommends indexing hot query fields, selecting only needed columns and logging slow queries.

    风易 | AI 工具链

    @Michael_liyang · Original 𝕏 post

    先说结论:免费档最烧的不是写,是没索引的查。 D1 按读行数计费,一条没索引的查询扫全表,读行数翻几十倍(待确认)。 做法:1 高频查询字段先加索引;2 只取要的列,别 SELECT *;3 慢查询记一条日志再优化。 链路:请求→索引定位→只读命中行→返回。索引是免费档里最便宜的性能,别等账单先到。
Author experienceWorkers +4

Cloudflare costs $5 a month, but the bill is not capped

不追高 (@Ariella1213) writes an X article explaining that Workers Paid’s $5 is a minimum, that per-product limits and budget alerts do not cap the account bill, and how denial-of-wallet requests, write amplification, delayed stops and background retries add cost.

Durable Objects

igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.

X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.

Author experienceAccount-wide usage-based products

NatashaTheRobot: a bot that sends a daily Cloudflare billing summary

After a $10 surprise alert, NatashaTheRobot built a scheduled bot that monitors her Cloudflare account and sends a daily billing usage summary, and shared it as a template.