mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 19:20:56 +08:00
Allow override
This commit is contained in:
@@ -23,11 +23,10 @@ sub insert_vectors
|
||||
|
||||
sub test_duplicates
|
||||
{
|
||||
# TODO Improve
|
||||
my $res = $node->safe_psql("postgres", qq(
|
||||
SET enable_seqscan = off;
|
||||
SET hnsw.ef_search = 10;
|
||||
SELECT COUNT(*) FROM (SELECT * FROM tst ORDER BY v <-> '[1,1,1]' LIMIT 10) t;
|
||||
SET hnsw.ef_search = 1;
|
||||
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