• Post Reply Bookmark Topic Watch Topic
  • New Topic

How should I save my data?

 
Derek White
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My situation:
I am running a program that generates a lot (no more than 1 million) entries of information through user input.
The entries all have the same basic format:
Unique ID - for identification
Name - for clarification
Then after that there are about 12 other properties that are mainly a String/int mix.

On start-up, I need to load the entries from however I saved them. They will be loaded into a HashMap (<Unique ID, Object[]>)
From there the program will run as it should, adding/updating/removing entries.
When needed, I'll have to close the program, which will have to save each of these entries to be loaded again. It is pretty important that this operation is done pretty fast.

So now, the true question- in what way should I save/load these entries?
Please, I don't really need to be spoon fed, but I'd appreciate it greatly if someone pointed me to a nice library


As of now this is what I have:
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My suggestion would be to use a database to store the records. See the JDBC tutorial.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!