Discard all documents in pipeline
At the very end of a pipeline I would like to update a single row in a logging table. I’m going to do that in an Execute Task snap, but the problem I’m having is that it wants to run the child snap 20k times instead of simply running a single update statement. Is it possible to clear all documents from a flow or to go from 20k documents to a single document in a single snap?
Just added in this February release is the ‘Gate’ snap, part of the flow snap pack. This snap will wait for all upstream snaps to finish, meanwhile it will collect all the input docs into a single document, and will eventually send the single document downstream once all upstream snaps have finished.
Here is a link to the documentation for this new snap:
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/918487380/Gate