FANNG1 opened a new issue, #15007:
URL: https://github.com/apache/gravitino/issues/15007

   ### What would you like to be improved?
   
   `LanceTableOperations.openDataset` opens a new Lance `Dataset` on every 
call, without a shared `Session`. For tables with a large manifest, each open 
re-reads and re-parses the manifest. This adds latency on hot paths such as 
`loadTable` schema refresh (`VERSION_CHECK`), `alterTable`, and location 
validation on registration.
   
   ### How should we improve?
   
   Reuse a Lance `Session` (metadata/index cache), which is already supported 
by the Lance 12.0.0 Java API through `ReadOptions.Builder#setSession`.
   
   - Hold a size-bounded `Session` per catalog and release it when the catalog 
is closed.
   - Make sure credentials and storage options are not shared across catalogs 
or tables.
   - Measure `open` latency on large manifests before and after the change to 
confirm the benefit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to