File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes What is the best JDBC driver, Performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "What is the best JDBC driver, Performance" Watch "What is the best JDBC driver, Performance" New topic
Author

What is the best JDBC driver, Performance

bobby, morkos
Ranch Hand

Joined: Jan 04, 2002
Posts: 82
I need to find the best Jdbc driver to connect to Oracle. I need the fastest driver out there. If you can tell me where I can download the driver and why you think it's the best performant driver (speed). Thanks.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

If your clients will have the Oracle client on their machines then I would suggest going for the oci Driver. If they don't I suggest the thin driver.
If you have an OTN Oracle Tech Net Login you can go here.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
bobby, morkos
Ranch Hand

Joined: Jan 04, 2002
Posts: 82
I will install my program on Unix, and for now I'm testing on Windows. For 1000 results returned it takes 1,904 milliseconds and I need to go at somewhere 50 milliseconds. What can I do to optimize this. I use PL/SQL and the thin driver, and jdk1.3 from sun as VM. Does anyone have any recommendations where I can increase my program speed.

Originally posted by Mark Spritzler:
If your clients will have the Oracle client on their machines then I would suggest going for the oci Driver. If they don't I suggest the thin driver.
If you have an OTN Oracle Tech Net Login you can go here.

Mark
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Hve you checked with your DBA. Meaning have you analyzed the tables, analyzed the query, gotten an explain plan. Checked indexes already?
That is one way of speeding up your query, if you are forced to stick witht he thin driver.
Other things that can speed up queries, but not neccessariy for your case. Do you have a connection pool with connection already to handle your query. Creating the connection is always added time.
Hope that helps some.
Mark
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Mark Spritzler:
If your clients will have the Oracle client on their machines then I would suggest going for the oci Driver. If they don't I suggest the thin driver.
If you have an OTN Oracle Tech Net Login you can go here.

Mark

I know that oracle claims that the OCI is faster than thin, but independant testing have shown differently. Benchmarks can be found
here which is a chapter from "Java Programming with Oracle JDBC" by Donald Bales. The chapter might give you some ideas as to how to reduce your query time as well.
Jamie
bobby, morkos
Ranch Hand

Joined: Jan 04, 2002
Posts: 82
my 1 st connection to intantiating the pool takes
2 secs is there a way to improve on this.

Originally posted by Mark Spritzler:
Hve you checked with your DBA. Meaning have you analyzed the tables, analyzed the query, gotten an explain plan. Checked indexes already?
That is one way of speeding up your query, if you are forced to stick witht he thin driver.
Other things that can speed up queries, but not neccessariy for your case. Do you have a connection pool with connection already to handle your query. Creating the connection is always added time.
Hope that helps some.
Mark
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

my 1 st connection to intantiating the pool takes
2 secs is there a way to improve on this.

Unfortunately I wish I knew this answer too.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the best JDBC driver, Performance