Skip to content

perf(namespace): seek to dense ascending version pages - #11487

Merged
Xuanwo merged 3 commits into
lance-format:mainfrom
karthiksenv:codex/seek-ascending-version-pages
Nov 26, 2026
Merged

Xuanwo merged 3 commits into
lance-format:mainfrom
karthiksenv:codex/seek-ascending-version-pages

Conversation

@karthiksenv

@karthiksenv karthiksenv commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Addresses the ascending LIST cost in #11448. Descending continuation is under review in #11469.

For a bounded ascending continuation on ordered S3, check whether a V1 key could contribute to the requested interval, then seek to the corresponding V2 keys. Return the page directly only after finding every expected version and one lookahead row. A gap, a possible V1 overlap, or a change in decimal width falls back to the existing numeric scan. The logical page token survives deletion of its manifest.

The regression compares a complete ascending walk with unbounded history when a V1 key sorts between V2 keys. It also checks bounded reads, duplicate manifests, and cleanup between pages.

With 10,001 V2 manifests on Moto 5.2.6, the public Rust API returned every expected version, manifest path, size, eTag and timestamp. No query issued a manifest GET or HEAD.

Query Upstream version-directory LISTs This PR
Latest version 1 1
Full ascending history, unbounded 11 11
Full ascending history, pages of 1,000 121 68
Full ascending history, pages of 100 1,111 260

The three-version continuation consumed 102 entries on upstream and at most five with this patch. All 512 namespace unit tests passed. Rust formatting and Clippy passed in CI. The Java 25 job needs a maintainer rerun after Maven Central returned HTTP 429 while resolving the Maven JAR plugin. Java job log

@karthiksenv
karthiksenv marked this pull request as ready for review November 25, 2026 18:01

@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 pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

The seek reduces listing work for dense V2 continuations while preserving numeric fallback for mixed layouts and cleanup. The bounded-consumption regression and all 80 version-related tests pass locally.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing the ascending pagination fix, and thank you, @Xuanwo, for approving it. All 512 namespace tests passed. Could a maintainer merge this PR when convenient?

@Xuanwo
Xuanwo merged commit 56fc027 into lance-format:main Nov 26, 2026
52 of 60 checks passed
Xuanwo added a commit to lance-format/lance-c that referenced this pull request Nov 27, 2026
Adopt the Lance `v16.0.0-beta.4` release commit (`1686234925dd`) for the
lance-c `v0.2.1-beta.8` preview. [Lance
release](https://github.com/lance-format/lance/releases/tag/v16.0.0-beta.4)

The directory namespace now seeks to dense ascending V2 continuation
pages on ordered S3. A local S3 comparison through
`lance_namespace_call` returned identical versions, manifest metadata,
and continuation tokens with the published `v0.2.1-beta.7` and the
candidate through both the seek and the fallback after cleanup. The
Rust-side FFI test also covers passing pagination tokens and reaching
the final page. [Upstream pagination
change](lance-format/lance#11487)

The candidate passed the public type and shared export checks against
the `v0.2.0` ABI baseline.
Xuanwo added a commit to lance-format/lance-c that referenced this pull request Nov 27, 2026
Adopt the official Lance `v16.0.0-beta.5` release for the upcoming C
`v0.2.1-beta.8` preview. The tag object
`0f6402864d25df180d4d07067ae6ffeaae1de407` peels to
`0ea718506941b3e4c8dd0aee279a8ea1b7c7b076`, which is used by all 16
manifest pins and 23 locked Lance packages. The resolved dependency
graph and enabled features match the previous pin. [Lance
release](https://github.com/lance-format/lance/releases/tag/v16.0.0-beta.5)

Lance beta.5 reuses bitmap range results and avoids repeated mask work
and unnecessary NULL tracking in combined scalar filters. The C scanner
regression checks Bitmap and LabelList filters with equivalent and
distinct ranges across three fragments, including `AND`, `OR` and `NOT`
with nullable scores and lists. [Upstream
change](lance-format/lance@239aaea)

Since published C beta.7, directory namespaces can seek directly to
dense ascending V2 manifest continuation pages on ordered S3. The
released beta.7 and candidate beta.8 shared libraries returned matching
version JSON and tokens on dense and gap pages against Moto with both
the default and OpenDAL transports. The candidate also matched all 890
published beta.7 Linux x86_64 C exports. [Namespace
change](lance-format/lance#11487)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-namespace Namespace impls K-approved Latest Gatekeeper recommendation permits acceptance. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants