Re: Record indentifier and the truth
Re: Record indentifier and the truth
- Subject: Re: Record indentifier and the truth
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 14 Dec 2010 00:26:45 -0700
On Dec 14, 2010, at 12:16 AM, Ferruccio Vitale wrote:
> Great! It looked that an ID changes between two slow syncs.
If your client initiated the slow sync, then this does not need to be true. If some other client initiated the slow sync, then your client should have picked up on this, and deleted its local records. The only difference between a slow and a push/pull-the-truth sync is the client that made the request doesn't participate in the opposite phase during a push/pull-the-truth sync (so if your client initiates a pull-the-truth sync, then your client cannot push anything).
> As I need to prevent some records from syncing, I thought that the best way was:
> 1) pull the truth
> 2) track all IDs that I don't want sync anymore
> 3) refuse any other sync request which involves those IDs.
>
> What do you think about it?
If you're prepared to delete and reset all of your records every time, then that's fine, though not very practical if there are thousands of records to pull. It might just be better to refuse the changes you don't want to pull when pulling.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden