N
N
Nikolai2019-03-20 16:31:48
Java
Nikolai, 2019-03-20 16:31:48

Where to store several dozen records in Java?

Greetings. The following problem arose: it is necessary to save approximately ten objects with the ability to quickly access and update each object. Of course the most obvious way is to use a DBMS. But it seems to me that starting a table to constantly keep 10 rows of records in it is not a very reasonable solution. Another option is to serialize objects and store them in a file, but this method will require writing a decent amount when, which I, as a programmer, absolutely do not want to do. So, who knows how to quickly and easily save objects with the ability to quickly access and modify them? Maybe there are some ready-made solutions for this, well, in fact, do not create a whole table in the database to store 10 rows there.
The Java/Spring program is wrapped in a docker container for Linux.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai, 2019-03-21
@develnk

Thanks to Eugene Aristarhov , I settled on a json file with the help of Jackson, everything is really simple and easy to do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question