Remember that Core Data is a hierarchy of objects, which, as always, is stored in the database, so you need to look at it as a graph of objects and not a database.
So yes, you need to check if an object already exists using a specific specific unique identifier, and if it does not currently exist, you need to create a new object or update an existing object.
Update
You do not need to retrieve all the objects; look for storage using NSFetchRequest and NSPredicate to check for availability; if it exists, if it is not created.
Marcus S. zarra
source share