I am writing an iOS application in XCode. The data loaded for the multitudes of viewcontrollers is generally loaded from the DB upon the
viewDidAppear() for that particular VC, or it it is passed from one VC to another upon
IBAction button clicks.
I am wondering if there is a better/more efficient way to do this?
Should I load all data at the launch of the application? In my opinion this would not be a good idea considering that would require many different threads pulling from different parts of the DB all at the same time (or synchronously chained) at the onset. I am concerned this would slow the app's launch considerably.
Additionally, I think to update data, the
viewDidAppear() pulls couldn't be wholly removed anyway. In fact, I do not really see any particular benefit in doing a full load at the application launch, but I wanted to be doubly sure that I am correct in this assessment and am not missing anything.
Is there any benefit to doing the load this way? Is there any downside to doing it the way I have it set up already?