Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hash table  RSS feed

 
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?
 
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?
 
Villains always have antidotes. They're funny that way. Here's an antidote disquised as a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!