简体   繁体   中英

SQLite vs remote database?

I'm currently creating an android app and 1 of the activities has to display a list of cards with info that's being stored in a database.

My question is what kind of database should I be using?

Should I just get all the info out of the remote database when it has to be loaded or should I insert it into an SQLite database and update that one occasionally?

If you can expect and require your users to have a network connection then a remote database would be simpler than storing local data and syncing. Sync can be tricky.

If the use must be able work offline, then you must go with local storage or database.

Use SQLite only if your data needs are indeed "lite". Otherwise consider using a more serious database such as H2 Database .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM