In my desktop project, I am using
JDBC. I need to get data from database in aroud all the methods, so I doing the follwing in all those methods: loading class, making connection, getting data, closing connection.
Now the problem is, my project performance is very poor. It is very slow while execution.
What can I do to avoid this situation?
Ilja has suggested to use DAO pattern. Please give me some details, how it can help? and very importantly how much changes I have to do in code because I have JDBC code in around all the methods...
Thanks.