I have a program that constantly receives information from the site and is constantly updated. At the moment, I save all this information in arraylist , and then when I finish, I write it to a text file.
I need to manipulate this information; however, it creates a massive text file, and I cannot read and write information to a text file constantly because it takes too much time. So someone told me to study database usage. The only database I have ever used was the MySQL database for the website, never with java.
Is there a way to make the database local? Like only on my computer (don't want to pay for web hosting when I'm the only one who accesses this information on my computer)? I was looking a bit for SQLite, but one of the things I saw is that it does not allow concurrency. I think about the multithreading of my program and at the same time reading and writing different sections. Is it possible?
Basically, I ask here:
- Which database should I use?
- How to install this database on my computer?
- Some information on how to use Java jdbc? (read a little before)
- Any textbooks on any of the above (video, text, etc.)
source share