gavinchou opened a new pull request, #61354:
URL: https://github.com/apache/doris/pull/61354

   Support selective caching of index files only during compaction in cloud 
mode.
   
   Cherry-picked from #60609
   
   Changes:
   - Add two mBool configs to control index-only caching for base and 
cumulative compaction:
     * enable_file_cache_write_base_compaction_index_only (default: false)
     * enable_file_cache_write_cumu_compaction_index_only (default: false)
   
   - Extend RowsetWriterContext with compaction_output_write_index_only field
     to mark whether only index files should be cached
   
   - Modify get_file_writer_options() to accept is_index_file parameter:
     * When compaction_output_write_index_only=true and is_index_file=false,
       set write_file_cache=false to skip caching data files
     * Index files continue to be cached normally
   
   - Update file writer creation call sites to pass is_index_file parameter:
     * Index file writers: pass true
     * Segment (data) file writers: pass false
   
   Benefits:
   - Reduces cache pressure by avoiding caching large data files during 
compaction
   - Preserves index file caching for query performance
   - Provides separate control for base and cumulative compaction strategies
   - Maintains backward compatibility with default settings


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to