performancr tunning in traversing through a resulset (to form a table model)
posted 5 years ago
I am new to swing and debugging an existing code for a performance tunning perspective. I have a resulset to display in a TableModel. Each row is having size of the resulset and to get that i used - Resulset tableRows = rs.getInt(1);Below is the code of my DatabaseTableModel class.
This tablemodel is a time consuing. Please help me to tune this to a minimum extent.
Your GUI stuff seems to be alright; there is little you can do about that, except perhaps use a SwingWorker to do all this work in the background. Since the tuning needs to be done on the ResultSet I'll move this thread to our JDBC forum.
Oh, and please UseCodeTags next time. I've added them for you this time.