• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable too slow

 
Dylan Margoczi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple question, how can I speed up my JTable loading data?

All has been good until now, the amount of data I'm loading into the JTable is slowing it down. I'm only loading +/- 50 rows. Is this the JTable that is slowing down or could it maybe be the actual loading of the data from the database? It's not too slow as yet (but it is noticable) but I'm just worried when it comes to thousands of rows that have to be loaded.

Thanks Dylan.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not write a dummy data source, that just gets the data from memory? Compare the subjective and/or measured performance of this against your database-backed version. That should give you the answer.
 
Dylan Margoczi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I'll give that a try
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the jamon jdbc driver and you will have performance metrics for all sql statements issued, as well as all jdbc interface calls. You simply use the jamon proxy jdbc driver in place of your real db driver.

See this link for an example: http://jamonapi.sourceforge.net/#WhatsNew22
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic