mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-28 05:24:00 +00:00
perf: raise the default Blob V2 direct-read threshold to 32 MiB (#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](https://github.com/lancedb/lancedb/pull/5247) 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.
This commit is contained in:
@@ -2887,11 +2887,11 @@ class Table(ABC):
|
||||
``table.take_offsets(offsets, with_row_id=True)`` first and pass the
|
||||
resulting ``_rowid`` values.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
On Enterprise clusters that enable direct Blob reads, eligible Blob V2
|
||||
values of at least 32 MiB may use short-lived object-store URLs.
|
||||
Smaller values go through LanceDB. Direct reads also require
|
||||
network access to the object store, including endpoint routing, DNS,
|
||||
TLS trust, and egress rules.
|
||||
Blobs inside lists cannot be fetched by row id yet.
|
||||
|
||||
LanceDB Enterprise limits each request to 1024 row IDs and 64 MiB of blob
|
||||
@@ -2926,11 +2926,11 @@ class Table(ABC):
|
||||
One missing or deleted row ID rejects the entire batch; no partial
|
||||
results are returned.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
On Enterprise clusters that enable direct Blob reads, eligible Blob V2
|
||||
ranges of at least 32 MiB may use short-lived object-store URLs.
|
||||
Smaller ranges go through LanceDB. Direct reads also require
|
||||
network access to the object store, including endpoint routing, DNS,
|
||||
TLS trust, and egress rules.
|
||||
Row IDs can be obtained from a query with ``with_row_id(True)``.
|
||||
LanceDB Enterprise uses the batched endpoint when the server advertises
|
||||
support, partitioning at 1024 ranges and 64 MiB, including individual
|
||||
@@ -2959,11 +2959,11 @@ class Table(ABC):
|
||||
``buffer_size`` controls sequential read-ahead in bytes (default 512 KiB).
|
||||
Set it to 0 for sparse reads. Explicit range reads bypass this buffer.
|
||||
|
||||
On Enterprise clusters that enable direct Blob reads, large values and
|
||||
ranges may be fetched from short-lived object-store URLs. The client then
|
||||
needs network access to the object-store endpoint, including private
|
||||
endpoint routing, DNS, TLS trust and egress rules, in addition to the
|
||||
LanceDB endpoint. Small reads stay on the LanceDB proxy.
|
||||
On Enterprise clusters that enable direct Blob reads, eligible Blob V2
|
||||
reads of at least 32 MiB may use short-lived object-store URLs.
|
||||
Smaller reads go through LanceDB. Direct reads also require
|
||||
network access to the object store, including endpoint routing, DNS,
|
||||
TLS trust, and egress rules.
|
||||
``_rowid`` values stay valid after compaction when the table has stable
|
||||
row ids.
|
||||
One missing or deleted row ID rejects the entire batch; no partial
|
||||
|
||||
Reference in New Issue
Block a user