• How to sync?

    By Herr Vorragend 2 decades ago

    I am using your great tool for adding and updating documents in a target database. The last years I used "DWF Sync Tool 1.5 Beta" for copying, updating, etc.



    But how do I configure it, if I want to sync (1:1) two views?



    Example:

    ==========



    yesterday:

    Source-DB 300 docs

    Target-DB 300 docs



    today (before agent runs):

    Source-DB 299 docs

    Target-DB 300 docs



    The 300th document in the target-db (which was originally created through you tool), wasn't deleted.

    Or was it?



    Do I need a "clear all docs before agent run"-agent? :-)



    Or am I(!) stupid?

    :-)





    [Update]

    ========



    We already have the following possibilities:

    • Action if Target Document NOT Found using Key
    • Action if Target Document Found using Key



      And I think a new one would be nice:
    • Action if Source Document does not have an equal Target Document



      Great work!
    • Interesting question

      By David Jeyachandran 2 decades ago

      Hi Herr,



      This is an interesting question. I can see how it would be useful to keep two views synchronised. If you only need to deal with deletions from the Source database I think it can be done. Could I get you to try something…



      You already have create a config from Source db to Target db:

      If Target Document NOT Found using Key - ADD new documents to the Target db

      If Target Document Found using Key - UPDATE Target document



      Create a new config from Target db to Source db:

      If Target Document NOT Found using Key - DELETE Source

      If Target Document Found using Key - Skip



      I've never tested this scenario so please let me know how it goes. The simple alternative is what you already suggested which is to create a nightly agent that deletes all documents in the Target database but this not very efficient.



      I'll keep thinking about how to synch views. The next DMA release is going to include only fairly simple stuff. I'm working on getting the next release of Notes Reconn completed which I'm very excited about.



      Thanks again for your feedback/suggestions.



      Regards

      David

      • perfect

        By Herr Vorragend 2 decades ago

        Good idea,



        it works fine with you suggested configuration.



        Thank you