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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 600 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 688 Beast Mode
- 43 App Studio
- 38 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 385 Distribute
- 110 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 112 Manage
- 109 Governance & Security
- 8 Domo University
- 25 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive