This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Performance Problems with DB Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Performance Problems with DB Connection" Watch "Performance Problems with DB Connection" New topic
Author

Performance Problems with DB Connection

Rachel Thornton
Greenhorn

Joined: Aug 04, 2003
Posts: 5
I am creating a single-user application that requires database connection. I'm using a MS Access database, and have the connection set up fine. I am setting up a connection when the app is started and keeping it open until the app is closed, but I'm getting performance issues (mainly my Swing components aren't being shown properly). Are the performance issues to do with the constant connection to the database ? Would it be better to keep opening and closing the connection ?
Thanks
Rachel
Jon Strayer
Ranch Hand

Joined: Dec 04, 2002
Posts: 133
I doubt it, but you didn't really give us enough information to tell for sure.
Try running a profiler to see why the code is slow.


Jon
Rachel Thornton
Greenhorn

Joined: Aug 04, 2003
Posts: 5
I've foudn the problem. Nothing to do with the database. It's a problem with my Swing.
Thanks anyway!
 
Don't get me started about those stupid light bulbs.
 
subject: Performance Problems with DB Connection