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.
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.
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.
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
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
posted
0
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