I understand SharedPreferences
are ideal for small sets of key value pairs, but should I strive towards using sqlite
is it more efficient (time and resources)?
Asked
Active
Viewed 25 times
1

CommonSenseCode
- 23,522
- 33
- 131
- 186
-
1Are saving a user login to show next time he opens the app for instance? Then you could go with sharedPreferences. Do you need rellations of data that depends on each other or this information has a potential to grow and need to have more info / rellations? Then go for Sqllite. Here is also a sqlite with repository pattern source code: https://github.com/grmaciel/android-repository-ormlite – gmemario Jun 18 '15 at 00:39
-
@Gilson, thanks is there any other ORM recommended for SQL? – CommonSenseCode Jun 18 '15 at 00:58
-
1if you check the github link, the repository pattern was written over OrmLite which you can found more info here (http://ormlite.com/) – gmemario Jun 18 '15 at 01:28