Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
    Bookmark Topic Watch Topic
  • New Topic

Which DataType is better to hold large amount of data(88,000 values)  RSS feed

 
Gopi Nash
Greenhorn
Posts: 14
Redhat Scala Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi am new to Ranch||

Am looking to carry the large amount of data as Whereclause to another using ProcessInfo class

In Another class, ill have the invoiceID , search the 3 consecutive values in the Whereclause.

(String InvoiceID,Timestamp DateInvoice,String Prefix,String Physical)

such one string value contains 22 characters and totally (22*3 )*1000= 66,000 String and 1000 Timestamp values

Which is the performance between ?

Which datatype is better?

1. ArrayList
2. StringBuffer
3. HashMap
4. Any other specify the datatype ?



 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
CarefullyChooseOneForum
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!