Avoid inserting duplicates in Core Data
Hi,
I'm using Core Data for caching in my app, I understood Core Data is not a database and I cannot enforce uniqueness of certain attributes to avoid duplicates.
So, what's the best way to avoid inserting an item already present? Is there some best practice? I think it's something quite common.
Thanks a lot in advance.
|