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?