Quote:
|
The app does this every time it starts.
|
Bad data/incorrect data is a pain... However, processing to eliminate duplicates manually every time on app startup does not seem right to me.
Is this XML file shipped with the app or is it dynamic (downloaded from the web)?
If the XML file is dynamic (from the web), as always, I would greatly prefer processing the XML file using a server-side script to remove duplicates, as this offloads processing that would be needlessly duplicated across devices.
If the XML file is not dynamic and the data does not change, you should ship a CoreData database (ideally sqlite) with your app.
If the XML file is not dynamic and the data does change, you should ship a CoreData database with the entities that do not change separated (if possible) from the entities that do change.