airborne12 commented on PR #69854:
URL: https://github.com/apache/doris/pull/69854#issuecomment-7097010415

   Could you narrow this PR to the read-path changes and leave the index 
formats unchanged?
   
   **Keep**
   - `NormLengthSums`: the norm length sums cached with the CLucene and SNII 
searchers, computed once per key, with selected norms decoded 4,096 rows at a 
time.
   - `DorisCompoundReader::ScopedIOContext`: CLucene norms read with the 
query's I/O context.
   
   **Drop**
   - The CLucene `delete_sign_rows` sub-file and the SNII section 
`SniiSectionRefsPB.delete_sign_rows = 6`.
   - Indexing delete-sign rows without terms: `set_delete_sign_rows` and its 
callers in `VerticalSegmentWriter`, the column writers and `IndexBuilder`.
   - Carrying the record through CLucene and SNII index compaction and BUILD 
INDEX, `RecordedDeleteSignRows`, and the tests for these.
   
   Reasons:
   1. The statistics are correct without the record. `collect_hidden_docs()` 
takes the delete-bitmap rows plus the delete-sign rows. The doc count, the 
document frequencies and the norm sums then subtract those rows, whatever the 
index holds. So the record only stores again what the delete-sign column 
already holds.
   2. The reported 5–15% gain compares the cached record with an uncached 
column read in the same binary (`44bf8eb90fe`). It does not show that a stored 
record does better than reading the column once per segment and caching the 
rows in memory.
   3. The record costs a format change in both CLucene and SNII, carry logic in 
both index compactions and in BUILD INDEX, rules for mixed versions, one copy 
per text index, and different results under `skip_delete_sign` and 
`show_hidden_columns`.
   
   The per-query read of the delete-sign column can go to a separate follow-up. 
Please also update the title, description and release note to match.
   


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