I have two NSManagedObject subclasses, Person and Photo, that I am storing with CoreData. I need a comment object for a photo, and I was wondering if I should create a new NSManagedObject subclass and store it in core data, or create a subclass of nsobject and have an array of those in my Photo object? Which is the best thing to do? What are the pros and cons of each one?
I have two NSManagedObject subclasses, Person and Photo, that I am storing with CoreData.
Share
in my opinion, using Core Data is much better;
because you can use the relation to get the comment directly , and cache your comment in the database will release the time of request from the server~