Forum Discussion

salishrodinger's avatar
salishrodinger
New Contributor II
2 years ago
Solved

Conditional Snap Run

Hi everyone, I have been experiencing an issue lately where I have a large zip file containing 17 CSV files. I unzip the file and write it into an external stage. After that, I run several procedure...
  • ptaylor's avatar
    2 years ago

    A few observations and suggestions:

    • Without the Aggregate or another snap like it in the pipeline, the Multi Execute will execute for every input document. Adding the Aggregate snap was probably sufficient to make it execute only once, since the Aggregate snap has only one output document. There are other snaps you could use for this, such as Tail or Gate.
    • If you're using S3 for staging, consider using the S3 Upload snap. It's much faster than the File Writer snap for writing multiple files.
    • Try using Snowflake Bulk Load to load the staged files instead of Snowflake Multi Execute. It should be much simpler.