Skip to content

Commit

Permalink
Merge pull request #25 from lsst-sqre/tickets/DM-41951
Browse files Browse the repository at this point in the history
[DM-41951] set auto commit to false
  • Loading branch information
cbanek authored Dec 12, 2023
2 parents 733299e + 6d35ec5 commit c7f79b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap/src/main/java/ca/nrc/cadc/sample/QueryRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private void doIt()
// manually control transaction, make fetch size (client batch size) small,
// and restrict to forward only so that client memory usage is minimal since
// we are only interested in reading the ResultSet once

connection.setAutoCommit(false);
pstmt = connection.prepareStatement(sql);
pstmt.setFetchSize(1000);
pstmt.setFetchDirection(ResultSet.FETCH_FORWARD);
Expand Down

0 comments on commit c7f79b2

Please sign in to comment.