Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9efdbc

Browse files
committed
Fix into the pgbench TAP test: reduce number of clients and threads
during the stress test on a postgres instance with installed AQOextension.This is enough to check correctness of concurrent access to a MLknowledge base.
1 parent05b8dbe commitd9efdbc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

‎t/001_pgbench.pl‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,33 @@
1313
aqo.log_ignorance = 'on'
1414
});
1515

16-
#my $result1;
17-
1816
$node->start();
1917

2018
# Check conflicts of accessing to the ML knowledge base
2119
# intelligent mode
2220
$node->safe_psql('postgres',"CREATE EXTENSION aqo");
2321
$node->safe_psql('postgres',"ALTER SYSTEM SET aqo.mode = 'intelligent'");
2422
$node->command_ok(['pgbench','-i','-s','1' ],'init pgbench tables');
25-
$node->command_ok(['pgbench','-t',"1000",'-c',"20",'-j',"20" ],
23+
$node->command_ok(['pgbench','-t',"1000",'-c',"10",'-j',"10" ],
2624
'pgbench in intelligent mode');
2725

2826
$node->safe_psql('postgres',"ALTER SYSTEM SET aqo.mode = 'controlled'");
29-
$node->command_ok(['pgbench','-t',"1000",'-c',"20",'-j',"20" ],
27+
$node->command_ok(['pgbench','-t',"1000",'-c',"10",'-j',"10" ],
3028
'pgbench in controlled mode');
3129

3230
$node->safe_psql('postgres',"ALTER SYSTEM SET aqo.mode = 'disabled'");
33-
$node->command_ok(['pgbench','-t',"1000",'-c',"20",'-j',"20" ],
31+
$node->command_ok(['pgbench','-t',"1000",'-c',"10",'-j',"10" ],
3432
'pgbench in disabled mode');
3533

3634
$node->safe_psql('postgres',"DROP EXTENSION aqo");
3735
$node->safe_psql('postgres',"CREATE EXTENSION aqo");
3836

3937
$node->safe_psql('postgres',"ALTER SYSTEM SET aqo.mode = 'learn'");
40-
$node->command_ok(['pgbench','-t',"1000",'-c',"20",'-j',"20" ],
38+
$node->command_ok(['pgbench','-t',"1000",'-c',"10",'-j',"10" ],
4139
'pgbench in learn mode');
4240

4341
$node->safe_psql('postgres',"ALTER SYSTEM SET aqo.mode = 'frozen'");
44-
$node->command_ok(['pgbench','-t',"1000",'-c',"20",'-j',"20" ],
42+
$node->command_ok(['pgbench','-t',"1000",'-c',"10",'-j',"10" ],
4543
'pgbench in frozen mode');
4644

4745
$node->safe_psql('postgres',"DROP EXTENSION aqo");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp