Prevent duplicates when importing RSS feed to Core Data

后端 未结 2 1736
鱼传尺愫
鱼传尺愫 2021-01-03 08:43

Trying to import a RSS feed into Core Data. Once they are imported, when trying to update the feed again afterwards, how do I most efficiently prevent duplicates. Right now

2条回答
  •  礼貌的吻别
    2021-01-03 09:26

    Can you modify your core data model ?

    If you can I would add a "Hash" property to each feed entry to uniquely identify it. Then you could efficiently detect wether a specific entry is already in your database or not.

提交回复
热议问题