Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
|
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2004, 07:10 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default PreparedStatement benifits more


Source from

http://www.ideas2work.com/jdbc1.html


__________________
Gokulan E
 
Old August 16th, 2004, 01:53 AM
Authorized User
 
Join Date: Aug 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to olupas
Default


I don't think performance on PreparedStatemt or Statement can by look
from that point of view.
Of cource creation involves parsing the sql query ,finding indexed columns,optmization ,builing query plan and that's why the creation
process is "slower" both for Statemt and Prepared Statement

Excecution is different...
1.Statemts execution involves all the steps above but some vendors supports statemts caching( eq SQL Server 2000 automatically caches Statements.)
2.Using prepared statemts pool (jakarta DBCP) involves performance
3.A better way is using callable statements

Hope this is interesting
http://www.theserverside.com/article...ared-Statments



 
Old August 17th, 2004, 12:16 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

Thanks, for link to let us know more about PreparedStatement








Similar Threads
Thread Thread Starter Forum Replies Last Post
PreparedStatement Problem syu Java Databases 4 December 28th, 2003 01:01 AM
PreparedStatement not working properly wslyhbb Java Databases 3 September 9th, 2003 01:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.