-
Jun 20th, 2011, 09:51 PM
#1
Which method is faster?QueryForRowSet or QueryForInt
Hi,
I am about to tune the performance of a method. The main purpose of the method is to get the number out from the query result.
current implementation gets the number using
SqlRowSet rs = JdbcOperations#queryForRowSet(sql, Object...), which returns a row contains a single column which has a integer value inside. Then a rs.getInt(1) is used to get the value.
If I change it to queryForInt(sql, Object...) will that make a difference in terms of performance?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules