• Thinking of other "stub document processing" uses

    By Kevin Pettitt 2 decades ago

    Nathan, love the concept here and look forward to playing with the code. The notion of performing operations on remote documents accessed via stub documents reminded me of the conversation Chris Blatnick are having about activity tracking. I wanted to put a few ideas out there so you might keep alternate uses for this code in mind during development.



    Chris' Application Activity Tracking OpenNTF project also utilizes stub documents to track read, edit, and delete activity within a given database. An enhancement to that would be the ability to place those stub entries into a central tracking database (a la OpenLog). Doing things with the "source" documents from inside the central activity log db would work much the same way as in Haystack.



    One exception that jumps to mind is what to do with deleted source documents. It should be no biggie to handle an orphaned stub document, but not handling it might cause errors. Come to think of it, even a Haystack search could run into this problem in an active database with lots of churn.



    There are probably other subtle differences between the two types of stub document scenarios, but I can't think of anything else at the moment. It's enough that you are aware of another potential use for the code.



    -Kevin

    • Gotcha

      By Nathan T Freeman/NotesOSS 2 decades ago

      Actually, there is current ZERO error handling if the origin document is inaccessible from the stub doc. I want to incorporate OpenLog to handle this, I was simply waiting for Julian's new release. (See me blame it on the other guy?)



      I agree that we should actually explicitly check for a document delete, though what to do in that case will ultimately be up to the developer who's wrapping Haystack.



      Anything I can do to help Activity Tracker, I'm a fan of doing, by the way. I just this morning started downloading every OpenNTF app that I've been wanting to learn about for a while so I can look into cooking them together. :)

      • Cooking an OpenNTF Stew

        By Kevin Pettitt 2 decades ago

        I've been doing a bit of cooking myself lately. Expect a serving soon. :-)