Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sun JDBC-ODBC driver to Microsoft Access DB slow in certain circumstances

Posted on 2004-04-16
11
Medium Priority
?
1,063 Views
Last Modified: 2007-12-19
Hi,

My Java 1.3 application connects to a local Microsoft Access DB (200MB+) using Sun's JDBC-ODBC driver. When running queries, it's performance is acceptable (a few seconds) when the application is running on Microsoft 98 or 2000, and completely unacceptable on Microsoft XP Pro or Home (a few minutes). I changed to another driver and it's performance is now the same for 98, 2000 and XP (a few seconds).

My question:
1. Why the discrepancy? Why would the driver work well on some operating systems and not on another? It's exactly the same JRE, same application, same data. Is there anything (for example, a patch) environmental that I can change on the XP machines that will fix the problem?

2. If there's nothing that can be done to enhance the Sun driver's performance on XP, are there any good free drivers? The application is installed all over the country, and so replacing the driver will not make business sense.

Thanks!

Pam.
0
Comment
Question by:icekalt
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10840470
The ODBC itself is too slow just because of the reason that it is not multi-threaded.  So when there is many calls at a time, each call will be processed one by one.

I don't think you have drivers for that.  Still search out you may find one.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 10840695
I'm not sure if the JTDS driver works with Access or not...

It works with SQL Server...and MAYBE Access...

http://jtds.sourceforge.net/
0
 
LVL 35

Expert Comment

by:TimYates
ID: 10840697
Hmmm...reading the FAQ, it doesn't look like it does....sorry...
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10840709
It supports only for

JDBC 2.1 driver for the Microsoft SQL Server series (6.5, 7.x and 2000) and Sybase 10.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10840843
You might try to use Connection pooling, if that's possible. I'm not sure if there is a driver for Access that allows pooling, but you can spend some time reading: http://webdevelopersjournal.com/columns/connection_pool.html
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10842136
Proabably easier to get a proper, free database
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10842154
Pay attention to the important word: >> *proper*

;-)
0
 
LVL 35

Accepted Solution

by:
TimYates earned 1000 total points
ID: 10843018
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10843068
Not forgetting HSQL, depending on the scale of the application being quite small

http://hsqldb.sourceforge.net/
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10843761
I would recommend in the short term to basically create the connections you need, and keep them alive. Creating new connections to a database is quite expensive (read takes time). In one of my applications I use a connection object that I keep around for each DAO, although that approach doesn't scale well to many DAOs, it works for my case with 8 DAOs. It might work in your case as well.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question