mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-12 23:56:55 +08:00
Limit max probes [skip ci]
This commit is contained in:
@@ -267,7 +267,7 @@ ivfflatbeginscan(Relation index, int nkeys, int norderbys)
|
|||||||
if (ivfflat_max_probes == -1)
|
if (ivfflat_max_probes == -1)
|
||||||
maxProbes = lists;
|
maxProbes = lists;
|
||||||
else
|
else
|
||||||
maxProbes = ivfflat_max_probes;
|
maxProbes = Min(ivfflat_max_probes, lists);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
maxProbes = probes;
|
maxProbes = probes;
|
||||||
|
|||||||
Reference in New Issue
Block a user