[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Does sync do whole record or just fields that changed?



Thanks Andrew and Alex

I was thinking of having my conduit track what field had changed - but I see that
would be a waste of time & energy


Andrew Arensburger (arensb+CShackers@ooblick.com) wrote*:
>
>On Mon, Jul 22, 2002 at 01:29:58PM +0000, Brian Johnson wrote:
>> Does the generic sync conduit transfer the whole record of just the fi
>>>elds that
>> changed?
>
> The whole record. The generic conduit knows nothing about the
>internal structure of the record: it's just a sequence of bytes.
>
>> I just wondered what happens if both sources change, but the change is on
>> different fields
>>
>> eg. addressbook
>> server copy changes lastname
>> palm copy changes phone number
>
> In that case, the generic conduit knows (from the flags) that
>both copies have changed. It then does a bitwise comparison of the two
>records, in case the same change was made to both copies. In this
>case, the two records really are different, so the generic conduit
>plays it safe by creating a new record, which it copies to both Palm
>and desktop.
> So both the Palm and the desktop will wind up with two
>versions of your AddressBook entry: one with the Palm's changes, and
>one with the desktop's changes. You'll have to update one of them
>manually and delete the other one (either on the Palm or on the
>desktop). This isn't ideal, but it's better than having ColdSync
>delete one version or the other and risking deleting the wrong one.
>
>
>


-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.