Skip to content

Commit

Permalink
Increased threshold value in case no backend connections are availabl…
Browse files Browse the repository at this point in the history
…e in the connection pool and a new connection is established
  • Loading branch information
rahim-kanji committed Dec 12, 2024
1 parent a4acea9 commit 2b3e95a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ int main(int argc, char** argv) {
ok(success, "Query executed successfully. %s", PQerrorMessage(backend_conn.get()));

std::chrono::duration<double, std::milli> duration = end - start;
ok(duration.count() < 10.00, "Execution time should be less than 10 ms. Actual: %f ms", duration.count());
// increased threshold value in case no backend connections are available in the connection pool and a new connection is established.
ok(duration.count() < 50.00, "Execution time should be less than 50 ms. Actual: %f ms", duration.count());

if (!executeQueries(admin_conn.get(), {
"SET pgsql-threshold_resultset_size=536870912",
Expand Down

0 comments on commit 2b3e95a

Please sign in to comment.