Repository navigation
perf(dataset): cache row visibility without manifest etags - #11610
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
✅ 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.
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
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
9b26be6d7.2d2b107anddb02d4dused 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.2d2b107db02d4dThese 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.