• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hash table

 
chandra maddila
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I store 1 million records in a hash table for a web based application? How the performence will be effected?
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not try it with a noddy program to see?
You could put String representations of integer numbers into a hashtable indexed by the same integer number as an Integer object. Should be easy enough to knock up with a for loop (but make sure you have a LOT of memory first).
Wouldn't a persistent data store be a better option in the long run?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic