How to add multiple commands in one Transform inside a dataflow?
How do I make so I can insert multiple commands in one Transform box. For example, I am adding multiple indexes and don't want to have to create them in multiple transforms.
create index SO1 on tech_salesorders(Sales_Order_ID)
create index SO2 on tech_salesorders(Customer_Organization_ID)
create index SOL1 on tech_salesorderlines(Sales_Order_ID)
create index SOL2 on tech_salesorderlines(Sales_Order_Line_ID)
create index ARI1 on tech_arinvoices(AR_Invoice_ID)
create index ARIL1 on tech_arinvoicelines(AR_Invoice_ID)
create index ARIL2 on tech_arinvoicelines(AR_Invoice_Line_ID)
create index ARIL3 on tech_arinvoicelines(Sales_Order_ID)
create index ARIL4 on tech_arinvoicelines(Sales_Order_Line_ID)
create index ORG1 on tech_organizations(organization_ID)
Best Answer
-
I wasn't able to do it in 1 dataflow but in 2.
Transform 1
create procedure indexing()
begin
alter table tech_salesorders add index(`Sales_Order_ID`, `Customer_Organization_ID`);
alter table tech_salesorderlines add index (`Sales_Order_ID`, `Sales_Order_Line_ID`);
alter table tech_arinvoices add index (`AR_Invoice_ID`);
alter table tech_arinvoicelines add index (`AR_Invoice_ID`, `AR_Invoice_Line_ID`, `Sales_Order_ID`, `Sales_Order_Line_ID`);
alter table tech_organizations add index (`Organization_ID`);
End
Transform 2
Call indexing()
2
Answers
-
I wasn't able to do it in 1 dataflow but in 2.
Transform 1
create procedure indexing()
begin
alter table tech_salesorders add index(`Sales_Order_ID`, `Customer_Organization_ID`);
alter table tech_salesorderlines add index (`Sales_Order_ID`, `Sales_Order_Line_ID`);
alter table tech_arinvoices add index (`AR_Invoice_ID`);
alter table tech_arinvoicelines add index (`AR_Invoice_ID`, `AR_Invoice_Line_ID`, `Sales_Order_ID`, `Sales_Order_Line_ID`);
alter table tech_organizations add index (`Organization_ID`);
End
Transform 2
Call indexing()
2
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive