You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/opensearch/knn/index/codec/jvector/GraphNodeIdToDocMap.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,9 +72,10 @@ public GraphNodeIdToDocMap(int[] graphNodeIdsToDocIds) {
72
72
finalintmaxDocs = maxDocId + 1;
73
73
// We are going to assume that the number of ordinals is roughly the same as the number of documents in the segment, therefore,
74
74
// the mapping will not be sparse.
75
+
// Note that the merge process may create ephemeral mappings that are sparse.
75
76
if (maxDocs < 0.8 * graphNodeIdsToDocIds.length) {
76
77
log.info(
77
-
"Max docs {} is less than 80% the number of ordinals {}, this implies a lot of deleted documents. Or that some documents are missing vectors. Wasting a lot of memory",
78
+
"Max docs {} is less than 80% the number of ordinals {}. This is normal if many docs were recently deleted or overwritten. Otherwise if many docs are missing vectors this is a waste of memory.",
0 commit comments