• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic