flow-like
flow-like copied to clipboard
Reuse LanceDB Cache Per App Scope
Currently execution runs create their own Lance session, so remote LanceDB tables can not really reuse manifest / metadata / index caches across runs.
We should scope Lance sessions / caches more intentionally. I think app_id is probably the right default isolation boundary.
Server side:
- cache should be scoped by app_id, maybe app_id + tenant/user if needed
- different apps should not share Lance cache entries
- workflows of the same app should be able to reuse cached manifests / indices
- async + sync execution should use the same scoped session where isolation allows it
Client side:
-
cache should also be app scoped
-
different apps / use cases should not share table cache
-
client direct S3 access should still work with prefix-scoped credentials
-
[ ] add app scoped Lance session handling
-
[ ] avoid creating a fresh LanceSession for every execution run where not needed
-
[ ] make the isolation mode configurable
-
[ ] document server vs client cache boundaries