TL;DR: Basin SQL now accepts JSON documents up to 16 MiB (16,777,216 bytes), up from 2,000 bytes, enabling direct querying of full telemetry records in Apache Iceberg tables without preprocessing.
Cloudflare's Basin SQL now accepts JSON documents up to 16 MiB (16,777,216 bytes), a dramatic increase from the previous 2,000-byte limit. This change removes the need to preprocess or split large JSON strings before querying them with scalar functions such as json_get, json_get_str, json_get_int, json_contains, and json_length. For platform engineers running serverless workloads on Cloudflare's edge, the limit change has direct implications for egress costs, cold-start behavior, and query planning.
Verified Key Facts
| Metric / Signal | Finding |
|---|---|
| Basin SQL previous JSON document limit | 2,000 bytes |
| Basin SQL new JSON document limit | 16 MiB (16,777,216 bytes) |
| Supported JSON scalar functions | json_get, json_get_str, json_get_int, json_contains, json_length |
| PostgreSQL default TOAST threshold | ~2 KB for 8 KB pages |
| PostgreSQL max block size | 32 KB (requires compile-time change and initdb) |
Inside the Full Technical Dispatch
- Cost & Platform Limits Table
- Measured Bottlenecks & Hidden Billing Traps
- Production Configuration Snippet
- Migration Checklist & Break-Even Thresholds
Read the full analysis, runnable configurations, benchmark tables, and primary source citations on Pyvren.
Originally published on Pyvren by Hamdi Soudani.
Top comments (0)