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

   ## Summary
   - Enable `skip_write_index_on_load` property for ANN indexes to skip index 
construction during data loading and defer it to compaction time
   - When enabled, ANN index is not built during INSERT operations, improving 
data loading performance
   - Query falls back to brute force search when ANN index is not available
   - ANN index is built during compaction and becomes available for approximate 
search
   
   ## Changes
   - **FE**: Remove restriction that blocked `skip_write_index_on_load=true`
   - **BE**: Only skip ANN index during TYPE_DIRECT writes, not inverted index
   - **BE**: Handle graceful fallback to brute force when ANN index is missing
   - **BE**: Return `INVERTED_INDEX_BYPASS` when ANN index file is empty
   
   ## Test plan
   - [x] Regression test `test_skip_write_index_on_load.groovy` verifies:
     - Case 1: `skip_write_index_on_load=true` + insert → no ann.faiss in index 
file
     - Case 2: `skip_write_index_on_load=true` + compaction → ann.faiss exists
     - Case 3: `skip_write_index_on_load=false` + insert → ann.faiss exists 
immediately
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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