Registry Mirror
Skip to content

Conversation

@beinan

@beinan beinan commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Round-robin preparation can scatter repeated records from one session across every preparer. Add opt-in preparation.partitioning: "bucket_bytes_v1" to keep a bucket's records together within each publication, assigning larger buckets to the least-loaded part using encoded byte counts. Only source metadata is reordered; partitioning adds no payload copy or decode.

The assignment version is included in task and cached-result identity. Default striping preserves the existing request format and behavior. Every preparer must support the new mode before enabling it. Publication still requires the complete aggregate; a hot bucket remains indivisible, and multiple file writers within a preparer can still split its records.

Refs #378.

Testing

  • Six targeted Rust tests pass, including independent HTTP preparers, an unavailable endpoint, reuse of a completed partition, actual WAL reopen and full-column Lance verification.
  • With two preparers and one file writer each, the recovery test verifies that each session spans two files under record striping and one under bucket assignment.
  • Metadata tests cover byte skew, complete non-overlapping assignment, deterministic ordering and distinct versioned retry identities.
  • All-feature, all-target ingestion Clippy and the ingestion library suite pass (38 passed, 8 ignored locally). Full repository checks pass: workspace Clippy/tests, formatting, Python tests, Ruff and Pyright. All GitHub CI workflows pass, including HA and all-feature coverage.

These tests establish file placement and recovery behavior. Sustained ingestion throughput, memory under skew and query latency remain to be measured before enabling the option in a deployment.

@beinan
beinan marked this pull request as ready for review October 23, 2026 20:50
@beinan
beinan merged commit e9b0284 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