Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

performancr tunning in traversing through a resulset (to form a table model)

 
deepak sisodia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

Thanks
Deepak
 
Rob Spoor
Sheriff
Posts: 20827
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Deepak!

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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!