Skip to content

fix(cache): invalidate only touched dataset entries#186

Merged
Xuanwo merged 3 commits intomainfrom
xuanwo/precise-dataset-cache-invalidation
Apr 2, 2026
Merged

fix(cache): invalidate only touched dataset entries#186
Xuanwo merged 3 commits intomainfrom
xuanwo/precise-dataset-cache-invalidation

Conversation

@Xuanwo
Copy link
Copy Markdown
Collaborator

@Xuanwo Xuanwo commented Apr 1, 2026

This PR narrows Lance dataset cache invalidation to the touched dataset key instead of clearing the whole per-connection cache. Path-backed tables now key on resolved open path plus storage options, and namespace-backed tables key on endpoint plus table ID plus auth/header fingerprint, so writes to dataset A no longer evict cached handles for unrelated datasets B/C.

It also threads cache keys through transactional write paths and adds a sqllogictest covering precise invalidation after a write. Validation in this environment was limited to code review and git diff --check; local format/build/test commands were blocked because uv, ninja, and the DuckDB format script were denied by host system policy.

@Xuanwo Xuanwo marked this pull request as ready for review April 1, 2026 19:53
@Xuanwo Xuanwo merged commit d1ae6d4 into main Apr 2, 2026
10 checks passed
@Xuanwo Xuanwo deleted the xuanwo/precise-dataset-cache-invalidation branch April 2, 2026 08:19
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