result set performance
Posted by: Cristian Sergiu
Date: April 07, 2005 12:30AM


I am using mysql 4.0.12 and mysql-connector-java-3.0.8-stable-bin.jar

For example i tried this :

String sql1 = "Select * from......";

Statement stmt = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);

ResultSet rs = stmt.executeQuery(sql1);

the execution of the query is 992 miliseconds

if I use Statement stmt = connection.createStatement();

the execution of the query is 1 miliseconds

Why? Is this normal?
Please answer.

Options: ReplyQuote

Written By
result set performance
April 07, 2005 12:30AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.