Optimizing pipelines

By Hatnest · Reviewed by Saurav Raj Joshi · Updated Nov 30, 2026

Most pipeline time goes into moving data, so optimizing a pipeline usually means optimizing its Copy activities and the way they are arranged. The method is the same each time: measure, find the bottleneck, change one setting, measure again.

Measure first

Open the pipeline run and then the Copy activity's details. You see rows and bytes copied, throughput, the effective used parallel copies and the duration of each step the copy went through. The step with the longest duration is the bottleneck. Sometimes the view also lists performance tuning tips that name the bottleneck and a suggested change.

Remember that copy throughput is limited by the slowest of three things: the source store, the destination store and the network between them. Tuning Fabric settings cannot beat a source that cannot serve data faster. Often the real limit is the source database, so watch its load too.

Levers inside one Copy activity

  • Intelligent throughput optimization. Controls how much compute a copy run may use. The values are Auto (the default, chosen from the source and destination pair and the data pattern), Standard, Balanced and Maximum, or a custom number from 4 to 256. Higher means more throughput and more cost.
  • Degree of copy parallelism. The maximum number of threads reading from the source or writing to the destination. It is separate from the throughput setting. The default is automatic. Setting a number lets you control the load placed on the source, because parallel copies roughly equal the sessions opened against it.
  • Source partition option (relational sources such as Azure SQL Database). The default is none, which means a single read stream. The alternatives are:
    • Physical partitions of table, for a source table that is already partitioned. The partition count limits the useful parallelism.
    • Dynamic range, where you name a column and optionally its lower and upper bounds, and the copy generates range queries that run in parallel. Provide the bounds yourself, because otherwise the service spends time querying the source to find them. An index on the partition column, such as a clustered key, makes the range queries cheap.
  • Staging. It is required when the destination is a Fabric warehouse through the copy path, and then parallelism and throughput settings apply from the source to the staging area. Enable it only when it helps; it adds a hop.
  • Fault tolerance and consistency verification protect data but add work, so enable them where you need them.

The default of one stream for a large table is the commonest cause of a slow copy. Switching on a partition option is usually the biggest single gain, especially when the table has an indexed numeric or date column.

Parallelism across activities

For very large or very uneven sources, break the work up in the pipeline design, called logical partitioning:

  1. A Lookup or Script activity produces a list of ranges, for example date buckets.
  2. A ForEach activity iterates over the list. Without Sequential, items run in parallel, limited by the Batch count (50 at most).
  3. Inside the loop, a Copy activity reads one range using a parameter in the source query.
SELECT * FROM dbo.orders
WHERE order_date >= '@{item().start}' AND order_date < '@{item().end}'

Activities inside a ForEach run in order for each item, but different items run side by side. This pattern needs more design effort and is for strict load windows. Watch the load on the source and the destination capacity when many copies run together.

Other pipeline-level habits

  • Load less. Use incremental loads or a copy job in incremental mode instead of copying the full table every time.
  • Avoid retry storms. A high retry count on a permanently failing step wastes time. Set sensible timeouts.
  • Keep file sizes healthy at the destination. A lakehouse table that a pipeline fills with many small files needs separate maintenance; see the lakehouse article.
  • Check capacity use with the capacity metrics app when many pipelines compete.

Common mistakes

  • Raising the throughput setting when the source is the bottleneck.
  • Setting parallelism very high and overloading the source database.
  • Using dynamic range on a column without an index or with skewed values, so some ranges are far larger than others.
  • Leaving a ForEach sequential for hundreds of independent items.

For the exam

  • Find the slowest step in the Copy activity details; it is the bottleneck.
  • Intelligent throughput optimization is Auto, Standard, Balanced, Maximum or 4 to 256; parallelism is a separate setting.
  • A partition option (physical or dynamic range) lets one copy read in parallel; supply range bounds.
  • ForEach with a batch count of up to 50 runs copies in parallel for logical partitioning.
  • Throughput is capped by the slowest of source, destination and network.

Sources