[ 
https://issues.apache.org/jira/browse/GERONIMO-6714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814997#comment-16814997
 ] 

David Jencks commented on GERONIMO-6714:
----------------------------------------

Also, in a patch, it's usually better to remove obsolete code rather than 
commenting it out; version control makes it easy to see the old code and the 
change.

> Use PreparedStatement
> ---------------------
>
>                 Key: GERONIMO-6714
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6714
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: databases
>            Reporter: bd2019us
>            Priority: Major
>         Attachments: patch.txt
>
>
> {color:#24292e}Hello,{color}
> {color:#24292e}Is it a good way to use "PreparedStatement" instead of 
> "createStatement" to improve performance?  "PreparedStatement" is helpful if 
> we are executing a particular parameterized SQL query multiple times ( such 
> as "Delete..." in this case) since "PreparedStatement" can be precompiled and 
> the query is created only once. {color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to