jerqi commented on code in PR #8450: URL: https://github.com/apache/gravitino/pull/8450#discussion_r2340734786
########## core/src/main/java/org/apache/gravitino/stats/storage/LancePartitionStatisticStorage.java: ########## @@ -79,13 +90,21 @@ public class LancePartitionStatisticStorage implements PartitionStatisticStorage private static final int DEFAULT_MAX_ROWS_PER_GROUP = 1000000; // 1M private static final String READ_BATCH_SIZE = "readBatchSize"; private static final int DEFAULT_READ_BATCH_SIZE = 10000; // 10K + private static final String DATASET_CACHE_SIZE = "datasetCacheSize"; + private static final int DEFAULT_DATASET_CACHE_SIZE = 0; + private static final String METADATA_FILE_CACHE_SIZE = "metadataFileCacheSizeBytes"; + private static final long DEFAULT_METADATA_FILE_CACHE_SIZE = 100L * 1024 * 1024; // 100MB + private static final String INDEX_CACHE_SIZE = "indexCacheSizeBytes"; + private static final long DEFAULT_INDEX_CACHE_SIZE = 100L * 1024 * 1024; // 100MB // The schema is `table_id`, `partition_name`, `statistic_name`, `statistic_value`, `audit_info` private static final String TABLE_ID_COLUMN = "table_id"; private static final String PARTITION_NAME_COLUMN = "partition_name"; private static final String STATISTIC_NAME_COLUMN = "statistic_name"; private static final String STATISTIC_VALUE_COLUMN = "statistic_value"; private static final String AUDIT_INFO_COLUMN = "audit_info"; + private final Cache<Long, Dataset> cache; Review Comment: Fixed. -- 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]
