phoenix
phoenix copied to clipboard
use PreparedStatement
trafficstars
Hello, Is it a good way to use "PreparedStatement" instead of "createStatement" in order to improve performance? "PreparedStatement" is used to execute dynamic or parameterized SQL queries. It is helpful if we are executing a particular SQL query multiple times ( such as in a loop in this case) since "PreparedStatement" can be precompiled and the query is created only once.
Hi @swaroopak, sorry for the late reply. I just submit a patch to JIRA for Hadoop QA. Please check it.