Zhengfei
04/20/2023, 2:39 AMtableIndexConfig for dimension tables.
1. If we don’t specify the loadMode in tableIndexConfig , is HEAP the default load mode?
2. If we specify the loadMode in tableIndexConfig , will it overwrite the default load mode?
"tableIndexConfig": {
"invertedIndexColumns": [],
"loadMode": "MMAP"
},Zhengfei
04/20/2023, 2:39 AMZhengfei
04/25/2023, 8:10 AMNavina
04/26/2023, 5:42 AMTableConfigBuilder, HEAP seems like the default load mode. However, the IndexLoadingConfig is actually using the ReadMode.DEFAULT_MODE which turns out to be mmap. I think the latter is the source of truth. Not sure why the default in TableConfigBuilder is HEAP . cc: @Jackie
2. If you configure loadMode in tableIndexConfig , it will use that instead of the default.Zhengfei
04/26/2023, 6:17 AMis the the code? https://github.com/apache/pinot/blob/release-0.12.1/pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java#L497which turns out to beReadMode.DEFAULT_MODEmmap
Jackie
04/26/2023, 5:32 PMTableConfigBuilder is just a tool to build table config and is mostly used by the test. We probably missed it when changing the default load mode, and we can change it to use MMAP as the defaultJackie
04/26/2023, 5:35 PMMMAP mode