Android SQLite vs flat files

im creating a game right now and I got a little stuck on how to implement the storage tier. I need to be able to download level files from the Internet. im not very familiar with ota file transfers, but I have some experience with databases ( mysql). What would be the best way to store game level data?

+3
source share
2 answers

Using sqlite will definitely reduce the time spent on coding, so you can focus on what's more important: the logic of the game. What you are going to store is simple data, then you should not use another method to save this information.

+3
source

There are many reasons to use a database.

If you have read-only data and never change (other than a complete rewrite), consider using flat files . The database may be excessive in this scenario.

By the way, consider placing files in external storage - this can help the user maintain low application memory, especially if the data files are large.

0
source

Source: https://habr.com/ru/post/1744620/


All Articles