shubhamvishu commented on code in PR #14963:
URL: https://github.com/apache/lucene/pull/14963#discussion_r2214215334
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswVectorsFormat.java:
##########
@@ -137,9 +144,16 @@ public final class Lucene99HnswVectorsFormat extends
KnnVectorsFormat {
private final int numMergeWorkers;
private final TaskExecutor mergeExec;
+ /**
+ * Whether to bypass HNSW graph building for tiny segments (below {@link
#HNSW_GRAPH_THRESHOLD}).
+ * When enabled, segments with fewer than the threshold number of vectors
will store only flat
+ * vectors, significantly improving indexing performance for workloads with
frequent flushes.
+ */
+ private final boolean bypassTinySegments;
Review Comment:
Makes sense
--
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]