yihua commented on code in PR #13724:
URL: https://github.com/apache/hudi/pull/13724#discussion_r2349599307


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java:
##########
@@ -870,6 +873,18 @@ TypedProperties 
buildFileGroupReaderProperties(HoodieMetadataConfig metadataConf
     props.setProperty(
         DISK_MAP_BITCASK_COMPRESSION_ENABLED.key(),
         Boolean.toString(commonConfig.isBitCaskDiskMapCompressionEnabled()));
+
+    // Enable HFile block caching for all MDT partitions regardless of the 
configuration to avoid rescanning the HFiles for better performance
+    props.setProperty(HoodieReaderConfig.HFILE_BLOCK_CACHE_ENABLED.key(), 
"true");

Review Comment:
   Let's only enable HFile caching for MDT files partition when used by 
MDT-based file system view for parity as before.



-- 
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