Skip to content

Commit

Permalink
Revert SELECTs to use regular execute instead of executeBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Dec 22, 2023
1 parent 02f8b96 commit 95215bc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ private static void executeReads(Connection conn, int tableNum) throws SQLExcept

try (Statement stmt = conn.createStatement()) {
for (int i = 0; i < NUM_READS; i++) {
stmt.addBatch(selectSQL);
stmt.execute(selectSQL);
}
stmt.executeBatch();
}

long duration = System.nanoTime() - start;
Expand Down

0 comments on commit 95215bc

Please sign in to comment.