Skip to content

perf(dataset): cache row visibility without manifest etags - #11610

Merged
BubbleCal merged 4 commits into
mainfrom
yang/manifest-cache-fingerprint
Nov 30, 2026
Merged

BubbleCal merged 4 commits into
mainfrom
yang/manifest-cache-fingerprint

Conversation

@BubbleCal

@BubbleCal BubbleCal commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reuse deletion masks, stable row ID indices, and the point lookup range cache when the object store supplies no manifest ETag. Use a lazy BLAKE3 fingerprint of the manifest row layout and deletion descriptors as a separate cache namespace. Keep the URI, version, fragment subset, and deletion mode in the cache identity. Reuse the published ETag or memoized fingerprint only while the handle retains the bound manifest instance. A replacement manifest gets a content-derived cache namespace.

This change is scoped to snapshot cache keys and leaves the row ID index representation independent of #10800.

Validation

  • Exercise both ETag and fingerprint paths across same-URI table recreation.
  • Verify repeated calls share deletion masks and the row ID index without an ETag.
  • Cover a warmed RowIdIndex followed by cloning the handle and removing the deletion descriptor. The original still hides the row, and the clone resolves it at the same manifest version. Exercise both ETag and no-ETag inputs.
  • GitHub Actions validates the updated head 9b26be6d7.
  • On a dedicated GCP VM with 16 vCPUs and 62 GiB RAM, 2d2b107 and db02d4d used 1,048,576 rows in 256 fragments with stable row IDs and one deletion per fragment. A commit-handler shim suppressed the ETag. Each arm ran two cold opens and 60 warm operation pairs.
Warm operation p50 (lower is better) Baseline 2d2b107 Earlier head db02d4d Benefit
Deletion mask 0.781 ms 0.00959 ms 81.4x speedup
RowIdIndex lookup 18.32 ms 0.000871 ms 21,033x speedup

These times measure direct cache operations at the earlier head. First-call RowIdIndex construction remained near 18 ms per arm. The updated head still needs cgroup-paired performance validation. Recheck shared row ID lookup paths if #10800 lands first.

@BubbleCal
BubbleCal marked this pull request as ready for review November 30, 2026 03: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 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.

Xuanwo
Xuanwo previously requested changes Nov 30, 2026

@Xuanwo Xuanwo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI-assisted source review of db02d4d

Clones share Arc<OnceLock<String>>, but callers can replace a clone’s public manifest, as read_physical_slice does. Without an ETag, warming the deletion-aware row ID index before cloning leaves the clone using the stale index after its deletion descriptor is removed. Please tie fingerprint reuse to the manifest instance and add a regression showing that the same row stays hidden in the handle that still has the deletion descriptor and becomes visible in the clone.

@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 manifest-instance guard addresses the stale-index behavior raised in the earlier review and also handles mutation with a single strong owner. No remaining merge-blocking issues found.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 30, 2026
@BubbleCal
BubbleCal requested a review from Xuanwo November 30, 2026 03:29
@Xuanwo
Xuanwo dismissed their stale review November 30, 2026 04:06

AI-assisted verification of 9b26be6. With and without an ETag, the deleted row stayed hidden on the handle retaining the deletion descriptor and became visible at (0, 1) on the clone. https://github.com/lance-format/lance/actions/runs/46345581946/job/141606972668

@BubbleCal
BubbleCal merged commit 825e578 into main Nov 30, 2026
45 of 46 checks passed
@BubbleCal
BubbleCal deleted the yang/manifest-cache-fingerprint branch November 30, 2026 05:12
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. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants