mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +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)
|
||||
maxProbes = lists;
|
||||
else
|
||||
maxProbes = ivfflat_max_probes;
|
||||
maxProbes = Min(ivfflat_max_probes, lists);
|
||||
}
|
||||
else
|
||||
maxProbes = probes;
|
||||
|
||||
Reference in New Issue
Block a user