Cloudflare D1 将于 2026-11-04 起强制执行 50 MB 查询结果大小限制
D1 - D1 will enforce a maximum query result size of 50 MB
依赖 Cloudflare D1 的开发者必须注意:11月4日后查询结果超 50MB 将直接报错中断。请检查业务中是否存在全表扫描或无分页的大数据量读取场景,并在生效日前完成 SQL 优化或增加分页逻辑,避免线上故障。
Beginning Wednesday, November 4, 2026, D1 will enforce a maximum query result size of 50 MB. Queries that return a result larger than 50 MB will fail and return the following error:
自2026年11月4日(星期三)起,D1将强制执行最大查询结果大小为50 MB。返回结果大于50 MB的查询将失败并返回以下错误:
D1 query result exceeded the maximum response size limit of 50 MBThe 50 MB limit covers the 99.999th percentile of requests across D1, so most D1 users will not be impacted.
50 MB的限制涵盖了D1 across请求的第99.999百分位,因此大多数D1用户不会受到影响。
Import and export operations via the REST API are not subject to this limit and will continue to work as they do today.
通过REST API进行的导入和导出操作不受此限制约束,并将继续按当前方式正常工作。
If your queries return large results, reduce the result size before the enforcement date. For example, select only the columns you need instead of using SELECT *, and paginate large result sets with LIMIT and OFFSET.
如果您的查询返回大型结果,请在执行日期之前减小结果大小。例如,仅选择您需要的列,而不是使用SELECT *,并使用LIMIT和OFFSET对大型结果集进行分页。
For more information, refer to D1 limits and the D1 error list.
更多信息,请参阅D1限制和D1错误列表。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力