jerryshao commented on code in PR #6569: URL: https://github.com/apache/gravitino/pull/6569#discussion_r1975267349
########## core/src/main/java/org/apache/gravitino/metalake/MetalakeManager.java: ########## @@ -60,6 +67,21 @@ public class MetalakeManager implements MetalakeDispatcher { private final IdGenerator idGenerator; + @VisibleForTesting + static final Cache<NameIdentifier, BaseMetalake> METALAKE_CACHE = Review Comment: I think caching metalake is better, because the amount of metalake is quite limited, with small memory size we can improve the performance a lot, it is worthy to cache the metalake. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org