mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 00:26:55 +08:00
Updated cost estimation to not use index when expected tuples is too low
This commit is contained in:
@@ -26,7 +26,7 @@ sub test_duplicates
|
||||
my $res = $node->safe_psql("postgres", qq(
|
||||
SET enable_seqscan = off;
|
||||
SET hnsw.ef_search = 1;
|
||||
SELECT COUNT(*) FROM (SELECT * FROM tst ORDER BY v <-> '[1,1,1]') t;
|
||||
SELECT COUNT(*) FROM (SELECT * FROM tst ORDER BY v <-> '[1,1,1]' LIMIT 20) t;
|
||||
));
|
||||
is($res, 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user