Software Information

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


MORE RESOURCES:

Jive Software Q4 Earnings, Revenue Beat Street
Forbes
Updated: Enterprise social networking company Jive Software reported its first earnings as a public company today, beating Street earnings and revenue expectations. Jive generated $22.5 million in revenue in the fourth quarter of 2011, up 53% from the ...
Photo Release -- Jive Software Announces Fourth Quarter and Full Year 2011 ...GlobeNewsWire (press release)
Jive Software Q4 Loss Widens - Quick FactsNASDAQ
Jive reports bigger 4Q loss, higher revenueBusinessWeek

all 49 news articles »


Guidance Software Acquires CaseCentral
socalTech.com
Pasadena-based Guidance Software, which develops digital forensics and e-discovery software, said Tuesday afternoon that it has signed a definitive agreement to acquire CaseCentral, a developer of electronic discovery software.
Guidance Software to Acquire CaseCentralMarketWatch (press release)
GUIDANCE SOFTWARE, INC.: Guidance Software Reports Q4 2011 Financial Resul..4-traders (press release)

all 15 news articles »


Advent Software Beats on EPS, but GAAP Results Lag
msnbc.com
31 (Q4), Advent Software beat expectations on revenues and beat expectations on earnings per share. Compared to the prior-year quarter, revenue expanded significantly and GAAP earnings per share contracted significantly. Advent Software notched revenue ...

and more »


American Software, Inc. Invites You to Join It's Third Quarter of Fiscal Year ...
MarketWatch (press release)
ATLANTA, Feb 07, 2012 (BUSINESS WIRE) -- In conjunction with American Software's Third Quarter of Fiscal Year 2012 Results /quotes/zigman/68042/quotes/nls/amswa AMSWA -2.11% , you are invited to listen to its conference call that will be broadcast live ...

and more »


Veeam Software Reports Record-Breaking Year in 2011
EON: Enhanced Online News (press release)
COLUMBUS, Ohio--(EON: Enhanced Online News)--Veeam Software, innovative provider of data protection, disaster recovery and management solutions for virtual datacenter environments, today announced results for the fourth quarter and full year of 2011.

and more »


Knoa Software Expands Executive Team with Addition of Michael Zuckerman as ...
EON: Enhanced Online News (press release)
NEW YORK--(EON: Enhanced Online News)--Knoa® Software, the leading provider of end-user management software, today announced the expansion of its executive team with the addition of Michael Zuckerman as chief marketing officer and vice president.

and more »


Bradenton Herald

Hydrovolts Uses Autodesk Software to Create Plug-and-Play Water Turbines
EON: Enhanced Online News (press release)
(EON: Enhanced Online News)--Clean technology innovator Hydrovolts is using software from Autodesk, Inc. (NASDAQ: ADSK) to create unique hydrokinetic turbines that are more easily installed in rivers, canals and other waterways for faster generation of ...
Hydrovolts Turbine For Clean Energy Generation, Designed With The Help Of ...TheStreet.com (press release)

all 8 news articles »


1 Software Stock to Buy Now
DailyFinance
The company, which specializes in providing accounting, inventory management, and other operational software over the Web, projected $0.19 to $0.21 in adjusted earnings on $295 million to $300 million in profits. All figures represented an increase ...

and more »


Rocket Software's $300 Million Dividend Loan Rises in Trading
Bloomberg
Rocket Software Inc.'s $300 million term loan to fund a dividend to Court Square Capital Partners rose in initial trading, according to data provider Markit Group Ltd. The six-year debt first exchanged hands at 99.88 cents on the dollar, according to ...

and more »


Confio Claims 2011 Growth
techrockies.com
Privately held Confio, the Boulder-based maker of database performance management software, reports today that it has 71 percent revenue growth in 2011. The firm--which did not disclose actual revenue numbers--also said it has more than doubled the ...
Confio Software Finishes 2011 with Soaring GrowthEON: Enhanced Online News (press release)

all 8 news articles »

Google News

Home | Site Map

Powered By: Free Work At Home Business Opportunity!

© 2006