Repository navigation
perf: raise the default Blob V2 direct-read threshold to 32 MiB - #5248
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
The shared default is a small, reversible tuning change. Its remaining risk is performance: reads from 10 MiB to below 32 MiB return to the proxy, increasing executor traffic and potentially cache pressure, while whole-value fetches still resolve locations first. The field comparison is described without linked measurements, so the end-to-end trade-off remains unverified. Monitor latency and executor cache pressure for workloads concentrated in that size band.
Backport presigned Blob V2 reads for Python and TypeScript, including signed URL reuse, retries, parallel ranged GETs, and the inclusive 32 MiB threshold. Direct reads require the server to advertise support. The backport includes the snapshot identity check on credential refresh that the transport changes build on. Refs #5210, #5216, #5238, #5247, #5248.
Enterprise SDKs use an inclusive 32 MiB default for eligible Blob V2 direct reads. The paired field comparison with the 10 MiB SDK default measured higher direct-read latency at 10 and 16 MiB. At 32 MiB, the interval for the latency difference spanned zero. SDK version used in the field comparison
The earlier mixed-load test measured lower Plan Executor cache pressure with direct reads enabled at the 10 MiB cutoff. That result covers the tested size mix. With the 32 MiB cutoff, reads from 10 MiB up to (but excluding) 32 MiB go through the proxy, so the impact on executor traffic and cache pressure depends on the workload's size distribution.
The existing internal override still takes precedence. Direct reads keep the 16 MiB part size. The Node binding test verifies proxy routing one byte below the default and two contiguous object-store ranges with a matching SHA-256 at exactly 32 MiB.