Cloudflare D1:9月1日起免费层每日读写行数超限将报错
D1 - D1 enforces free tier daily query limits
依赖D1免费层的开发者需在9月1日前评估用量,超限将导致服务中断。建议立即检查查询模式并优化索引,避免被动停机。
Beginning September 1, 2026, D1 queries on the Workers Free plan will fail when an account exceeds the daily row read or row write limits. Queries via the Workers Binding API and the REST API will return errors until the limit resets at midnight UTC. Stored data is not affected.
自 2026 年 9 月 1 日起,当账户超出每日行读取或行写入限制时,Workers Free 计划下的 D1 查询将失败。通过 Workers Binding API 和 REST API 进行的查询将返回错误,直到 UTC 时间午夜限制重置为止。存储的数据不受影响。
You will receive email alerts when the daily limit is reached. The following errors indicate that a limit has been exceeded:
当达到每日限制时,您将收到电子邮件警报。以下错误表明已超出限制:
| Error | Description |
|---|---|
| Your account has exceeded D1's free tier daily row read limit. Upgrade to a paid plan or wait until tomorrow (midnight UTC) to continue. | The account has reached its daily row read limit. |
| Your account has exceeded D1's free tier daily row write limit. Upgrade to a paid plan or wait until tomorrow (midnight UTC) to continue. | The account has reached its daily row write limit. |
| 错误 | 描述 |
|---|---|
| 您的账户已超出 D1 免费层的每日行读取限制。升级到付费计划或等到明天(UTC 时间午夜)以继续操作。 | 账户已达到其每日行读取限制。 |
| 您的账户已超出 D1 免费层的每日行写入限制。升级到付费计划或等到明天(UTC 时间午夜)以继续操作。 | 账户已达到其每日行写入限制。 |
Inspect database query activity before the enforcement date to identify queries that may exceed these limits. To reduce row reads, add indexes to tables and review queries that perform full table scans. If usage requires higher limits after optimization, upgrade to a Workers Paid plan.
在强制执行日期之前检查数据库查询活动,以识别可能超出这些限制的查询。为了减少行读取,请为表添加索引并审查执行全表扫描的查询。如果优化后使用量需要更高的限制,请升级到 Workers Paid 计划。
For more information on D1 errors and how to handle them, refer to the D1 error list.
有关 D1 错误及其处理方法的更多信息,请参阅 D1 错误列表。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力