Skip to content

perf: raise the default Blob V2 direct-read threshold to 32 MiB - #5248

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/ent4358-blob-read-threshold
Nov 27, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/ent4358-blob-read-threshold

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

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.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Gate recommendation: approve with a non-blocking risk.

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.

@lancedb-gatekeeper lancedb-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk. labels Nov 27, 2026
@github-actions github-actions Bot added Python Python SDK Rust Rust related issues performance labels Nov 27, 2026
@Xuanwo
Xuanwo merged commit e185dc8 into main Nov 27, 2026
47 of 49 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/ent4358-blob-read-threshold branch November 27, 2026 19:21
Xuanwo added a commit that referenced this pull request Nov 30, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk. performance Python Python SDK Rust Rust related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants