• 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
Pie
Posts: 20669
65
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic