From 3424b49033b997743f6309b54b2baf2abc2493d8 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 2 Aug 2023 18:24:22 -0700 Subject: [PATCH] Improved test time for WAL test [skip ci] --- test/t/010_hnsw_wal.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/t/010_hnsw_wal.pl b/test/t/010_hnsw_wal.pl index 53aafab..1e1e3f0 100644 --- a/test/t/010_hnsw_wal.pl +++ b/test/t/010_hnsw_wal.pl @@ -75,7 +75,7 @@ $node_replica->start; $node_primary->safe_psql("postgres", "CREATE EXTENSION vector;"); $node_primary->safe_psql("postgres", "CREATE TABLE tst (i int4, v vector($dim));"); $node_primary->safe_psql("postgres", - "INSERT INTO tst SELECT i % 10, ARRAY[$array_sql] FROM generate_series(1, 10000) i;" + "INSERT INTO tst SELECT i % 10, ARRAY[$array_sql] FROM generate_series(1, 1000) i;" ); $node_primary->safe_psql("postgres", "CREATE INDEX ON tst USING hnsw (v vector_l2_ops);"); @@ -89,7 +89,7 @@ for my $i (1 .. 10) test_index_replay("delete $i"); $node_primary->safe_psql("postgres", "VACUUM tst;"); test_index_replay("vacuum $i"); - my ($start, $end) = (10001 + ($i - 1) * 1000, 10000 + $i * 1000); + my ($start, $end) = (1001 + ($i - 1) * 100, 1000 + $i * 100); $node_primary->safe_psql("postgres", "INSERT INTO tst SELECT i % 10, ARRAY[$array_sql] FROM generate_series($start, $end) i;" );