HashMap Into MySQL Database
807580Dec 30 2009 — edited Dec 31 2009Hello, I was looking for some direction of what the best way to get a hashmap into a MySQL DB would be. The HashMap is dynamic and is generated on the fly so I never know the exact size / how big the index is.
I think the best way would be to iterate through the hashmap and insert each key and value into the MySQL database but the problem is the key value is random, between 000 and 999. So would just iterating through the hashmap be the most affective way to do this?
Any help is greatly appreciated!