I love apples to oranges comparisons :)
First off you are not using a connection pool in your jdbc example. Even
though your ibatis code will be run synchronously you will still incur that
overhead.
I am guessing that you are trying to prove to someone that ibatis is just as
fast as jdbc. If
Thank you for replying! I tried your suggestion but it did not make any
difference. Setting the value of this property to false did not make it
worse either!
-V
Try adding:
property name=Pool.poolPreparedStatements value=true/
or equivalent to your config file.
I ran into
: Vagisha Sharma [mailto:vsha...@u.washington.edu]
Sent: Saturday, April 25, 2009 11:16 PM
To: user-java@ibatis.apache.org
Subject: What am I doing wrong: Ibatis vs JDBC insert
Hello,
I am trying to insert several thousand records into a table, and using
JDBC with DBCP connection