You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate compression for large results with CloudFetch disabled #441
Large results with CloudFetch disabled can be slower through the Go kernel backend than through Thrift. Enabling the kernel's existing HTTP response-compression option improved a controlled comparison. We still need to establish how much of the slowdown is transfer cost and whether compression should be selected automatically.
How we tested the issue
Used a local build of kernel PR #436, revision 0b5d0edf, with CloudFetch disabled:
SELECT id, sha2(CAST(id AS STRING), 512) AS payload
FROM range(250000) ORDER BY id
All runs verified the complete 250,000-row, 32 MB result. After equal warmups, five alternating direct runs per mode measured medians of 2.658 s for Thrift and 3.241 s for kernel (+21.9%), including execution, fetching, and verification but excluding connection setup.
A separate five-run comparison changed only response compression: 3.211 s without compression versus 2.787 s with compression (-13.2%). A separate request trace confirmed response bytes fell from 45.49 MB to 34.39 MB, with identical decoded results.
Earlier comparisons varied with execution order. Compression helps in the controlled test; the complete cause of the Thrift/kernel difference remains unresolved.
What the next investigation / fix should be
Measure server wait, response transfer, decoding, and CPU separately. Evaluate using the existing compression option for paged inline results in the shared kernel, including small and mixed workloads, cancellation, and errors.
Choose the compression policy from those results, then repeat five direct Thrift/kernel runs on the finished implementation against the 10% regression limit.
changed the title [-]Reduce transfer overhead for paged inline results[/-][+]Investigate compression for large results with CloudFetch disabled[/+]on Nov 12, 2026
Activity
[-]Reduce transfer overhead for paged inline results[/-][+]Investigate compression for large results with CloudFetch disabled[/+]