I have a program which is constantly getting information from a website and is constantly updating. As of now I store all that information in an arraylist
and then when I am done I write it to a text file.
I need to manipulate that information; however, it creates a massive text file and I can't constantly read and write information to a text file because it takes too long. So someone told me to look into using a database. The only database I have ever used was a MySQL database for a website, never with java.
Is there any way to make a database local? As in only on my computer (don't want to pay for web hosting when I am the only one accessing this information at my computer)? I was looking a little bit into SQLite but one of the things I saw was that it does not allow concurrency. I'm thinking of multi-threading my program and having it read and write different sections at the same time. Is this possible?
Basically what I'm asking for here is:
- What type of database should I use?
- How do I install that database on my computer?
- Some information on how to use Java jdbc?(was reading a little into it before)
- Any tutorials on any of the above (video, text, etc)