I'm wondering if anyone has some insight into what would perform better: doing a core data fetch or looking for the file on disk.

The situation I'm in is downloading records and each record has an image tied to it. But different records can have the same image so I don't want to download the image twice. I'm saving the images to disk and using an NSManagedObject to save the web url and the local file path.

To avoid making another network call I can

A: Perform a core data fetch to see if I have the image already based on the web url

2 Answers
2

Since you are not working on complex document architecture (i.e., a collection a numerous objects) then it does not make sense to have someone else(CoreData) to do unneccesary file management for you . In your case simple NSFileManager will be slightly more efficient .