B
B
BitNeBolt2020-02-21 13:06:28
Android
BitNeBolt, 2020-02-21 13:06:28

Should you use databases to store multiple numbers?

Is it worth connecting databases to store a simple pair: subject - value, if there are no more than 50 such pairs?
Is it worth it in this case to store everything just in a text file? And if you change the value every two seconds, then which is faster and more reliable: databases or working with your own file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmtm, 2020-02-21
@BitNeBolt

Why save them every time? enough on activity.onPause or onStop,
optimally store in SharedPreferences and cache in memory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question