File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: PreparedStatement caching
It's not a secret anymore!