Hi Brian - is there a preferred way to check if an object already exists, before inserting?
For my use case, I’m pulling JSON from an API and looping through the response models, UPSERTING them into the context (mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy).
This seems fine, however I need to perform an additional operation ONLY for NEW objects - downloading an image via URL and storing/caching the data[] within the object’s attribute. With the current UPSERT technique, I’d be downloading + reading data[] for new AND existing response models, which seems a bit inefficient.
Could you share any thoughts on this? Ideally I’d like to keep the data[] within an object’s attribute, rather than moving it to a 3rd party library, such as SDWebImage.
Thank you for your thoughts!