tkalkirill commented on code in PR #2441:
URL: https://github.com/apache/ignite-3/pull/2441#discussion_r1295393056
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/schema/CatalogSqlSchemaManager.java:
##########
@@ -66,7 +66,11 @@ public class CatalogSqlSchemaManager implements
SqlSchemaManager {
/** Constructor. */
public CatalogSqlSchemaManager(CatalogManager catalogManager, int
cacheSize) {
this.catalogManager = catalogManager;
- this.cache =
Caffeine.newBuilder().maximumSize(cacheSize).<Map.Entry<String, Integer>,
SchemaPlus>build().asMap();
+ this.cache = Caffeine.newBuilder()
+ .initialCapacity(cacheSize)
+ .maximumSize(cacheSize)
+ .<Map.Entry<String, Integer>, SchemaPlus>build()
Review Comment:
What a pain, what a pain)
Let's use a separate class with fields, instead `Map.Entry<String, Integer>`.
--
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]