Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Published session queries with large binary rows can buffer the entire matching session before returning a batch. A byte target only splits results after late materialization, so concurrent requests can exhaust ingress memory and delay the first result.

Bound the rows gathered for late materialization with session_scan_batch_rows (default 1; configurable for smaller rows), retain shared ingress admission for the scan, and limit I/O and materialization prefetch. Admission accounts for Lance 13's concurrent late-materialization batches. All changes use existing Lance APIs inside lance-context; write batching and file sizes are unchanged. These are workspace targets, not hard RSS limits.

Part of #378.

Testing

  • Ingest service/http-client Clippy and 26 tests passed on the integration build; 7 tests explicitly ignored.
  • Existing publication/restart readback now exercises both default and larger scan batches against the union of published data and a WAL tail.
  • Regression verifies shared admission waits and cancellation releases it.
  • The complete repository CI helper and repeated concurrent-query restart qualification passed.

@beinan beinan changed the title fix(ingest): bound published session scan prefetch fix(ingest): bound published session scan batches and prefetch Oct 23, 2026
@beinan
beinan marked this pull request as ready for review October 23, 2026 03:16
@beinan
beinan merged commit 7e890f6 into lance-format:main Oct 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant