Skip to content

Commit 7484625

Browse files
committed
Added comments [skip ci]
1 parent d1ebb8d commit 7484625

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/hnsw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ HnswInit(void)
8282
NULL, &hnsw_iterative_search,
8383
HNSW_ITERATIVE_SEARCH_OFF, hnsw_iterative_search_options, PGC_USERSET, 0, NULL, NULL, NULL);
8484

85+
/* This is approximate and does not apply to the initial scan */
8586
DefineCustomIntVariable("hnsw.max_search_tuples", "Sets the max number of candidates to visit for iterative search",
8687
"-1 means no limit", &hnsw_max_search_tuples,
8788
-1, -1, INT_MAX, PGC_USERSET, 0, NULL, NULL, NULL);

src/ivfflat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ IvfflatInit(void)
4545
NULL, &ivfflat_iterative_search,
4646
IVFFLAT_ITERATIVE_SEARCH_OFF, ivfflat_iterative_search_options, PGC_USERSET, 0, NULL, NULL, NULL);
4747

48+
/* If this is less than probes, probes is used */
4849
DefineCustomIntVariable("ivfflat.max_probes", "Sets the max number of probes for iterative search",
4950
"-1 means no limit", &ivfflat_max_probes,
5051
-1, -1, IVFFLAT_MAX_LISTS, PGC_USERSET, 0, NULL, NULL, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy