Aju Antony
Aju Antony

Reputation: 639

Should I use Core Data or SQLite to have better App Size

I have a requirement to keep the app size under 3MB. There will be small amount of offline data storage in the app. I would like to know if I should use SQLite or Core Data (Which I personally prefer) to have better app size.

I will be coding the app in SWIFT3. I found out that we would require to use a wrapper to use SQLite anyway, which is basically what Core Data offers.

P.S.: I would personally like to stick to SWIFT3 rather than switching to objectiveC. Any additional tips for better app size and, opinions on if I should switch to objectiveC would be much appreciated.

Upvotes: 2

Views: 624

Answers (1)

glyvox
glyvox

Reputation: 58139

The answer is the usual "it depends".

If you are using it to store a minimal amount of data, like in this case, it really does not matter, but for ease of use and the easy methods of dealing with objects, I think that Core Data is a better choice. Nonetheless, it has its downsides (don't even get me started on thread concurrencies), but it's a useful extension for storing, especially if you are dealing with objects.

Upvotes: 2

Related Questions