Microsoft Windows Java ISDN Information

Computer Software Management Products

 RSS  feed      Home      
Web software.dovada.net.au

Powerful New Keyword Software
Keyword Elite - Powerful New Keyword Software Gave Me The Exact
Keywords To Earn An Extra $8,265 From Google Adwords.

SEO Elite marketing software - Norton Anti Virus - Create easy web video - Great software downloads - Music Movies Games Software


Share |


You are free to use content from this page in your blog or website, in return for a link back to this page from that blog or website.



Performance Tuning of a Daffodil DB / One$DB -JDBC Application


This article illustrates the best practices to improve the performance of Daffodil DB / One$DB JDBC Driver. This article focuses on how to improve the performance of a Daffodil DB / One$DB JDBC application using Statement, PreparedStatemnt, CallableStatement and ResultSet interfaces. Choosing the right statement interfaces and right methods according to your SQL query plays a vital role in improving the performance of a JDBC Driver.

JDBC Overview

JDBC API provides standard set of interfaces to work with databases like Daffodil DB / One$DB, Oracle, Derby etc.

Connection interface encapsulates database connection functionality, Statement interface encapsulates SQL statement representation and execution functionality whereas ResultSet interface encapsulates retrieving data which comes from the execution of a SQL query using Statement.

Following are the basic steps to write a JDBC program.

1. Import "java.sql" and "javax.sql" packages. (Import "javax.sql", if advanced JDBC feature like XA is to be used)

2. Load Daffodil DB JDBC driver (embedded or network JDBC Driver)

3. Establish connection to database using Connection interface

4. Create a Statement

5. Execute the Statement

6. Retrieve results by using ResultSet interface

7. Close Statement and Connection

Choosing right Statement interface:

There are three types of Statement interfaces in JDBC to represent/execute a SQL query-Statement, PreparedStatement and CallableStatement. Statement is used for executing static SQL statement with no input and output parameters; PreparedStatement is used to execute dynamic SQL statement with input parameters whereas CallableStatement is used to execute dynamic SQL with both input and output parameters. One important thing to note about PreparedStatement and CallableStatement is that they can also be used for static SQL statements. However, CallableStatement is mainly meant for stored procedures.

PreparedStatement gives better performance when compared to Statement because it is pre-parsed and pre-compiled. This means that compilation and parsing of such statement is done only once by the database. Afterwards the database reuses the already parsed and compiled statement. This significantly improves the performance because whenever a statement has to be executed repeatedly, it doesn't need to be parsed and compiled time and again. So the overload incurred by parsing and compiling the same statement can be reduced.

When there is a requirement for single request to process multiple complex statements, CallableStatement gives better performance as compared to PreparedStatement and Statement.

To read the full article please visit http://www.daffodildb.com/daffodildb-performance-tuning.html

This article has been contributed by (Mr.) Parveen Aggarwal, Technical Consultant to DSL India (http://www.daffodildb.com). With more than 6 years of industry experience in Java and allied technologies, he has an in-depth understanding of J2EE, J2ME and database management systems. Parveen is currently working on the concept of data-archiving in embedded databases. He can be contacted at parveenaggarwal@hotmail.com


Cat 18793


Office Productivity Application Suite, New programs, A+
ebay image$4.15 (0 Bids)
End Date: Thursday Feb-9-2012 14:00:27 PST
Buy It Now for only: $6.85
Buy It Now | Bid now | Add to watch list

PC Matic Performance Optimization Software | Electronic Delivery | 5 PCs
ebay image$14.99
End Date: Wednesday Mar-7-2012 14:05:52 PST
Buy It Now for only: $14.99
Buy It Now | Add to watch list

Wide Area Application WAASFE Test 642-655 Exam PDF+SIM
ebay image$6.97
End Date: Friday Feb-10-2012 16:24:07 PST
Buy It Now for only: $6.97
Buy It Now | Add to watch list

Genuine HP HDX16 Application and Driver Recovery CD 538588-B21 - 64 BIT
ebay image$20.00 (0 Bids)
End Date: Thursday Feb-9-2012 14:10:00 PST
Bid now | Add to watch list

NEW ZORIN 5 32 Bit DVD BEST BEGINNERS LINUX Desktop Laptop Bonus Application CD
ebay image$4.95
End Date: Tuesday Feb-21-2012 17:09:01 PST
Buy It Now for only: $4.95
Buy It Now | Add to watch list

Newest Mint Linux 12 OS 32 Bit DVD Desktop PC or Laptop + BONUS Application CD
ebay image$0.99 (0 Bids)
End Date: Thursday Feb-9-2012 15:24:08 PST
Bid now | Add to watch list

Original Apple iMac Restore OS X 10.6.1 Application Install DVD New Snow Leopard
ebay image$24.99
End Date: Saturday Feb-25-2012 15:04:20 PST
Buy It Now for only: $24.99
Buy It Now | Add to watch list

New Ubuntu Linux 11.10 OS 32 Bit CD Desktop PC or Laptop + BONUS Application CD
ebay image$0.99 (1 Bid)
End Date: Thursday Feb-9-2012 15:24:12 PST
Bid now | Add to watch list

DB 600 | 601 Daimler Benz Motoren 1936 flugmotor Me109
ebay image$39.95
End Date: Thursday Feb-9-2012 10:14:47 PST
Buy It Now for only: $39.95
Buy It Now | Add to watch list

New Ubuntu Linux 11.10 OS 32 64 Bit CD Desktop PC or Laptop BONUS Application CD
ebay image$0.99 (0 Bids)
End Date: Thursday Feb-9-2012 15:24:16 PST
Bid now | Add to watch list

Quickstart Utilities PC Cleaner Boost Performance NEW
ebay image$8.95
End Date: Thursday Feb-9-2012 12:32:52 PST
Buy It Now for only: $8.95
Buy It Now | Add to watch list

Power Mac G4 Software Restore and Application CDs
ebay image$5.00 (2 Bids)
End Date: Thursday Feb-9-2012 15:55:22 PST
Bid now | Add to watch list

NEW Symantec PC Tools Performance Toolkit 2012 - Windo
ebay image$26.24
End Date: Wednesday Feb-15-2012 11:26:10 PST
Buy It Now for only: $26.24
Buy It Now | Add to watch list

Newest GENTOO Linux 11.2 32 Bit LIVE DVD Desktop PC Laptop BONUS Application CD
ebay image$0.99 (0 Bids)
End Date: Thursday Feb-9-2012 17:34:38 PST
Bid now | Add to watch list

Mechanic Vehicle Car Auto Repair Engine Tuning Training Course Manual Book CD
ebay image$11.95
End Date: Sunday Mar-4-2012 10:26:30 PST
Buy It Now for only: $11.95
Buy It Now | Add to watch list

Home Business Plan

Peel Away Ads Marketing And Advertising without Pop-Ups, Fly-Ins or Pop-Unders
home | Software site map | custom google search | Software articles | Privacy policy
Copyright © 2009 www.dovada.net.au