> > >> > That's likely the solution I'll go for. I'll insert documents with a > 'validation' field set to 0. Then have a process watching for changes and > get it to validate the documents, mark them as validated. >
You probably don't even need to explicitly set another field. Just write your view to essentially "validate" the documents and emit them if they're not valid. You can filter your changes feed based on these results and then call an update function on those documents that are invalid from the daemon. This keeps as much as possible within couch, limits what the daemon needs to do and keeps you from having to change your app code. Cheers, Mike