Results 1 to 2 of 2

Thread: JDBCtemplate performance concern

  1. #1
    Join Date
    May 2012
    Posts
    3

    Post JDBCtemplate performance concern

    Hi

    In my application I have option to use either :

    jdbctemplate.queryForObject() or jdbctemplate.execute(PreparedStatementCreator..)

    I know internally queryForObject uses PreparedStatementCreator

    What I would like to know is about the performance impact of each.

    To me if queryForObject is used it will be using less lines of code than PreparedStatementCreator

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    There isn't (unless it is very minimal) spring will simply take that burden from you.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

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
  •