It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes PreparedStatement caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "PreparedStatement caching" Watch "PreparedStatement caching" New topic

PreparedStatement caching

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
One of the reasons to use PreparedStatement other than Statement is that PreparedStatement is implicitly cached, thus provides better performance.
But according to Oracle 9i JDBC Driver, by default, the implicit statement caching was disabled. Does this mean we have to enable the implicit statement caching on the connection first?
Thanks in advance.

SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: PreparedStatement caching
jQuery in Action, 3rd edition