Updated range and defaults for iterative search parameters

This commit is contained in:
Andrew Kane
2024-10-21 20:38:50 -07:00
parent 049972a4a3
commit e718eb8da4
9 changed files with 17 additions and 36 deletions

View File

@@ -264,17 +264,7 @@ ivfflatbeginscan(Relation index, int nkeys, int norderbys)
IvfflatGetMetaPageInfo(index, &lists, &dimensions);
if (ivfflat_iterative_search != IVFFLAT_ITERATIVE_SEARCH_OFF)
{
maxProbes = ivfflat_max_probes;
if (maxProbes < 0)
maxProbes = lists;
else if (maxProbes < probes)
{
/* TODO Show notice */
maxProbes = probes;
}
}
maxProbes = Max(ivfflat_max_probes, probes);
else
maxProbes = probes;