This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What suits the best while downloading more than 50,000 records?  RSS feed

 
Akshay Kumar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Java, at the client side, what structure/form(like Collections, HashTable, XML,...) should be used to store and manipulate the huge data(i.e., more than 50,000 records) that was dowloaded to the client from the server?
What best suits the effective performance and easy manipulation, while and after downloading?
How the best differ from the others in several aspects?
Are there other form of doing easy manipulation on such a huge amount of records?
Currently, the client is designed with Swings.
Anyone out there give some suggestions over this.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be really tempted to grab the whole thing as a monster byte[] rather than trying to keep up with building a collection of any kind on the fly. Resizing a collection could get pretty slow and you might have memory problems.
Can you predetermine the total size or some upper limit so as to let the client allocate enough space right at the start?
Bill
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With my personal experience anything to deal with more than couple of thousand records will be a mess on the client side.
May be prepare a hash on the entire result set and access a chunk of them as needed.(like 1-500, 500-1000).
Dan.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think this question can be reasonably answered without knowing what you need to do with all the data on the client side...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!