transmission line noise

home

Han­dling and Stor­ing Data in iOS

12 Aug 2013

Tagged with AFNetworking, Core Data, Databases/Datastores, FMDB, iCloud, iPhone, Miscellaneous, Parse, Plist, Push.io, Rem Objects, SQlite, Stackmob, Windows Azure

Intro

My expe­ri­ence over the last few years has been that of con­nect­ing to one or other of the data­bases web devel­op­ers are accus­tomed to con­nect­ing to. So MySQL Post­greSQL, Redis, Mongo etc.

In the early days access was by a con­nec­tion and then writ­ing sql code to extract the data and so forth. Lat­terly it has been in an OO method using an ORM or at least some form of library and abstrac­tion layer. Sim­pler and more effi­cient, or slower and more com­plex depend­ing on your point of view.

How­ever mov­ing to mobile means i need at the very least to rethink the the process and prob­a­bly to change my way of think­ing and work­ing. The first and most obvi­ous changes are con­nec­tiv­ity and storage.

Con­nec­tiv­ity & Storage

Unlike the web appli­ca­tions a mobile device has lim­ited con­nec­tiv­ity & in some case more expen­sive con­nec­tiv­ity and has lim­ited stor­age. It may seem blind­ingly obvi­ous but there are two way iOS devices connect

Unless some­one has an unlim­ited data plan then cel­lu­lar con­nec­tion for data can be expen­sive, use up the sub­scribers allowance and also be quite slow, espe­cially at cru­cial times or when con­nec­tions are poor etc. WIFI is often free, in the home, in Star­bucks, a good tip if you really want a fast con­nec­tion is to use an Apple store. But some­times peo­ple pay for wifi, on trains, most hotels these days so again an eye needs to be kept on how much is down­loaded and when.

gen­eral size of iOS appli­ca­tions and Apple restriction

Stor­age Options

This is not a detailed expla­na­tion of these types of stor­age. For that you need to look fur­ther doing your own research

Third Party Libraries

Cloud Ser­vices

There are two types of cloud ser­vices. Those like Ama­zon Web Ser­vices — AWS that pro­vide servers and data­bases (putting it very sim­ply) in the cloud and those that as well as pro­vid­ing servers and data­bases also pro­vide spe­cific ser­vices geared to the mobile market

comments powered by Disqus