I've got an iOS app I am trying to build that presents the user data from a .xlsx (MS Excel file) I have. The file has nearly 11,000 rows, with 20 columns per row. I have built a parser to transform each row into an subclass of NSObject
, with each column being an instance variable. I made it NSCoding
compliant, added each instance to an NSDictionary
, with it's key being the first row of the original file, and archived it. My problem is, I don't want to unarchive such a massive NSDictionary
, to access the maximum of 20 or objects with in it, I might need at any given time.
The question is: How do I go about saving this chunk of data in such a way, I don't have 11,000 objects living in the heap, and still be able to load the ones I need into the app while it's running?