Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Questions about how Alteryx submits queries to connected db engine

dtiana
6 - Meteoroid

Good morning,

I have two questions on how Alteryx builds up queries and submit them when a bunch of In-DB tools are connected togheter:

 

macro_non_macro.jpg

 QUESTION 1

In a workflow like the example above, does Alteryx builds up a multilevel nested query from all the inputs to the final join then submit it at once to the db engine; or does Alteryx builds up a query for each tool, saving results in tmp tables and so processing by steps and submitting many queries one at a time?

Iguess Alteryx builds up a whole multilevel nested query.

 

QUESTION 2

If I convert the two boxes in two macros with Macro In-DB Outputs and then I connect the two macro's output anchor to the final join, would Alteryx behave differently?

Like building up one nested query for each macro, creating tmp tables for the macro's outputs and then building and submitting a final query corresponding to the final join; or Alteryx will be anyway building up a whole unique nested query corresponding to the two macros operations plus the final join?

 

Many thanks and have a nice day,

 

Davide

2 REPLIES 2
Treyson
13 - Pulsar
13 - Pulsar

If you add the tool "Dynamic Output In-DB" (you might have to search for it, it's not on the IN-DB tool set) you can select an option to view the query. In my experience, it's just a bunch of CTEs.

 

Treyson_0-1674659558107.png

 

 

Treyson Marks
Senior Analytics Engineer
dtiana
6 - Meteoroid

Thanks Treyson, very useful int!

FYI in my version of designer (2022.1.1.25127) the Dynamic In-DB Output is right under the 'In-Database' tab ;)

 

Have a nice evening!

 

Davide

Labels