flow-like icon indicating copy to clipboard operation
flow-like copied to clipboard

Add LanceDB Cache Stats

Open felix-schultz opened this issue 5 months ago • 0 comments

We should expose LanceDB cache stats somewhere so we can see if remote tables are actually benefiting from cached manifests / metadata / indices.

This would help debug slow S3 / GCS backed tables and decide if cache sizes are too small.

Useful stats:

  • metadata cache hits / misses
  • index cache hits / misses
  • cache size in bytes
  • approximate item count
  • cache scope / app_id

This should respect isolation. Server side stats should be shown per app_id cache scope, not as one global mixed view. Client side stats should only show the current app cache.

  • [ ] add internal helper for Lance cache stats
  • [ ] expose stats in debug / governance / diagnostics
  • [ ] include current cache isolation scope
  • [ ] add logs for obvious cache misses on remote tables

felix-schultz avatar Jun 14 '26 16:06 felix-schultz