turb commented on a change in pull request #14338:
URL: https://github.com/apache/beam/pull/14338#discussion_r602440411



##########
File path: 
sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcIO.java
##########
@@ -903,6 +903,8 @@ public void processElement(ProcessContext context) throws 
Exception {
       if (connection == null) {
         connection = dataSource.getConnection();
       }
+      // PostgreSQL requires autocommit to be disabled to enable cursor 
streaming

Review comment:
       If I have an idea on how the parameter can be specified, it will be 
additional work yes, but I can spend some reasonable time on it.
   
   However, I am inclined to invoke YAGNI principle: once this parameter is 
needed (and I can't determine how someone would need autocommit while reading), 
the way to parameterize it and to take it into account in `JdbcIO` will appear 
more clearly.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to