xiangfu0 opened a new pull request, #20299:
URL: https://github.com/apache/pinot/pull/20299

   ## Summary
   
   - Use a temporary memory-mapped file for HNSW adjacency during the final 
`forceMerge(1)` of immutable vector indexes. The mmap writer is enabled by 
default. Set `mmapGraphOnMerge` to `false` in the field's HNSW properties to 
use the heap-backed writer.
   - Use stock Lucene dependencies and preserve the existing Lucene99 vector 
format. Ordinary flushes, background merges, and mutable realtime indexing use 
the stock writer.
   
   Mapped graph construction uses local scratch space in the segment build 
directory. At `maxCon=16`, base-layer adjacency is about 252 MiB per million 
vectors, plus upper layers and rounding to mapping windows. A scratch 
allocation failure aborts the merge with opt-out guidance. Mapped pages can 
count toward container memory.
   
   Lucene's stock HNSW merger currently keeps its mutable graph on heap. See 
[Lucene #15904](https://github.com/apache/lucene/issues/15904).
   
   ## Validation
   
   - The configuration, HNSW creator, and packed-index tests passed with stock 
Lucene 9.12.0.
   - A forced merge of 4,096 seeded 1,024-dimensional vectors produced the same 
adjacency and ranked IDs and scores as the stock serial writer across 100 
held-out queries. Stock Lucene read both merged indexes.
   - Additional graph parity checks covered duplicate vectors, sparse vector 
fields, and deleted documents.
   


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