Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Connect Discussions

Find answers, ask questions, and share expertise about Alteryx Connect.

Run Queries in Parallel

asaeed78
5 - Atom

I have a batch macro that creates sql statements from rows of an excel sheet and then runs the sql against my db.

each row of my excel defines a single sql statement.  At the moment the queries are run in sequence.  I want all the queries to be run in parallel.

Is there a way to achieve this in a single Workflow?

1 REPLY 1
KGT
13 - Pulsar

The Batch Macro will run in sequence. That is how it's designed. So, changing the structure of your workflow is going to be the solution.

 

You could have the batch macro create all the statements, and so the output of the Batch Macro is each of the statements, and then pass them all at once to the DB. If you want the outputs to be separate though, then you will need to have separate streams.

 

The other Out-of-the-box thought I had was having the statements write to a temp table, so that way your batch macro is just passing the statements, not waiting for results, and then call the temp table afterwards.