From a41b327b336e6737a3f4c48af0374981a5fdf285 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 13 Oct 2024 17:12:12 -0700 Subject: [PATCH] Speed up test [skip ci] --- test/t/044_hnsw_iterative_search_recall.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/t/044_hnsw_iterative_search_recall.pl b/test/t/044_hnsw_iterative_search_recall.pl index cacffd3..4722bfa 100644 --- a/test/t/044_hnsw_iterative_search_recall.pl +++ b/test/t/044_hnsw_iterative_search_recall.pl @@ -10,7 +10,7 @@ my @expected; my $limit = 20; my $dim = 3; my $array_sql = join(",", ('random()') x $dim); -my @cs = (100, 1000); +my @cs = (50, 500); sub test_recall { @@ -62,7 +62,7 @@ $node->start; $node->safe_psql("postgres", "CREATE EXTENSION vector;"); $node->safe_psql("postgres", "CREATE TABLE tst (i int4, v vector($dim));"); $node->safe_psql("postgres", - "INSERT INTO tst SELECT i, ARRAY[$array_sql] FROM generate_series(1, 100000) i;" + "INSERT INTO tst SELECT i, ARRAY[$array_sql] FROM generate_series(1, 50000) i;" ); # Generate queries