dimas-b commented on code in PR #1802:
URL: https://github.com/apache/polaris/pull/1802#discussion_r2129543855


##########
persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/DatasourceOperations.java:
##########
@@ -206,6 +215,17 @@ public void runWithinTransaction(TransactionCallback 
callback) throws SQLExcepti
         });
   }
 
+  public Integer execute(Connection connection, QueryGenerator.PreparedQuery 
preparedQuery)
+      throws SQLException {
+    try (PreparedStatement statement = 
connection.prepareStatement(preparedQuery.sql())) {

Review Comment:
   I did not mean preparing at startup, but at least reusing the 
`PreparedStatement` inside loops.



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to