Skip to content

Commit

Permalink
test: lowered iteration and row count for test to complete in time
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed Jun 30, 2022
1 parent 3cf2864 commit 8834fd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static class QueryRunnable implements Callable<Integer> {
private final HikariDataSource ds;
private final int start = intProperty("start", 10);
private final int spread = intProperty("spread", 1000);
private final int iterations = intProperty("iterations", 1000000);
private final int iterations = intProperty("iterations", 100);

public QueryRunnable(HikariDataSource ds) {
this.ds = ds;
Expand Down Expand Up @@ -150,7 +150,7 @@ private static String property(String property, String defaultValue) {
private void populateDatabase() throws SQLException {
Random random = new Random();
Connection connection = connection(POSTGRESQL);
int rowCount = intProperty("rows", 100000);
int rowCount = intProperty("rows", 100);
int maxQty = intProperty("max.quantity", 1000);
int batchSize = intProperty("batch", 10000);
String insertOrderSQL = "INSERT INTO orders VALUES (?, ?, ?, '1996-07-04', '1996-08-01', '1996-07-16', 3, 32.3800011, 'Vins et alcools Chevalier', '59 rue de l''Abbaye', 'Reims', NULL, '51100', 'France')";
Expand Down

0 comments on commit 8834fd7

Please sign in to comment.