Skip to content

Investigate compression for large results with CloudFetch disabled #441

Open

Description

@aakash-saravanan-db

What the issue is

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.

Activity

  1. changed the title [-]Reduce transfer overhead for paged inline results[/-] [+]Investigate compression for large results with CloudFetch disabled[/+] on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions