Hi @Aditya Singh Rathore
Root cause :
May be lookup and less foreach batch count.
Solutions :
1 . Replace Lookup with Cached Configuration
Lookup is slow because it:
Spins up compute
Reads metadata
Waits for IR
Serializes JSON
Runs synchronously
Instead, use:
Azure SQL or Azure Table Storage with a pre-cached config
Get Metadata + Set Variable
Pipeline parameters passed from trigger
This removes 80% of Lookup overhead.
2.ForEach → Batch count = 20 (or higher)
3.Instead of:
Lookup → Condition → Copy
Use:
Stored Procedure → Return JSON → Set Variable → Copy
Stored procedures are 10–20× faster than Lookup for control tablesInstead of:
Lookup → Condition → Copy
Use:
Stored Procedure → Return JSON → Set Variable → Copy
Stored procedures are 10–20× faster than Lookup for control tables
4.For large datasets, use:
Azure SQL staging
Synapse staging
ADLS staging
This offloads heavy lifting to the database engine.
Thanks