• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is the best JDBC driver, Performance

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
bobby, morkos
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic