The javadoc says:
Please note that this class is designed to provide convenience rather than high performance. For best performance consider using a custom RowMapper.
How slow is it in the real world?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Results of profiling mapRow method with Yourkit:
Conclusion:
On reading one row from result set, about 11 milliseconds are saved. Which means that 1 “virtual” second is saved at reading 100 records. Multiply that on the number of users and you will get the idea. ParameterizedBeanPropertyRowMapper can be used efficiently only in small apps that run on the client’s machine (desktop applications).