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

Re: One db, multiple conduits?



Darren J Moffat - Sun UK - Consultant Engineer writes:
>
>> Now getting down to the real question: can I sync with my address book
>> conduit as outlined above *AND* with Alan Harder's upcoming address book
>> conduit *WITHOUT* problems like changes not propagating correctly or
>> even propagating at all?  Is it even worth contemplating such a conduit
>> or should I hack this functionality into Alan's conduit when he's
>> finished with it?
>
>I really don't see any reason why not. At the moment the calendar
>is handled by both SyncCM and Backup.

Naah... SyncCM really syncs, while Backup just takes a copy of the
database in question.  Depending on the order of execution, you get a
backup copy of the original or the freshly synced database.

>It might be worth waiting until Alan releases his as there might be
>scope in their for using categories etc to choose what to sync if so
>the work is pretty much done!

The conduit will read a file and the Pilot database into memory
structures and sync them there using some simple algorithms -- for each
pair of records; if categories are correct and surname and first name
match, then update the older record with information from the newer
record -- and then write the databases back.  I don't think there will
be much reusable code.

What I'm afraid of is that there will be problems with the time stamps.
If I recall right, a database stores some information about each record;
most notably a "dirty" flag.  When the first conduit is finished, this
information will probably be reset, to the second conduit's chagrin.
How do I avoid this?

--Martin

Martin von Weissenberg     <http://www.hut.fi/~mweissen>
If you see a sailing boat with an ant-hill north of the mast, you know it
has been going in the same direction for a pretty long time.
------------------------------------------------------------------------
***********************************************************
*             This is a public mailing list!              *
* Please do not publish Sun proprietary information here! *
*        -  -  -  -  -  -  -  -  -  -  -  -  -  -         *
*             http://www.moshpit.org/pilotmgr             *
***********************************************************


SourceForge.net Logo