View Single Post
  (#2 (permalink)) Old
glennji glennji is offline
Forum Leader
 
glennji's Avatar
 
Posts: 58
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Feb 2008
Location: London
Send a message via MSN to glennji Send a message via Yahoo to glennji Send a message via Skype™ to glennji
Default 09-26-2008, 07:08 AM

Do multiple invocations of the query speed up?

A PreparedStatement is usually for a query that you're going to run a number of times -- it takes longer to "prepare", but then should be quicker to run.

Maybe time the prepareStatement() and the executeQuery() calls separately?
Reply With Quote