tnabe wrote:
Quote:
Hello,
I have used prepared statements almost exclusively when invoking JDBC calls (because of the putative performance advantages).
But I've spent some time perusing the code (3.1.6) and this forum and I'm wondering whether I've been using them correctly.
It looks like any PreparedStatement instance (created via connection.prepareStatement("SQL . . .")) is only "re-usable" on the "same" connection instance, and in fact is only re-usable by client code maintaining a reference to the original PreparedStatement instance. Is this correct? |
Read the documentation for the JDBC connection URL:
http://dev.mysql.com/doc/connector/j...classname.html
Specifically cachePrepStmts
.... Kevin
--
Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.
Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
Kevin A. Burton, Location - San Francisco, CA
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
--
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe: http://lists.mysql.com/java?unsub=my...ie.nctu.edu.tw