- Copy job or the copy activity in a pipeline loads tables and files as they are. Dataflow Gen2 is for low-code transformations, and a notebook gives you full control over the data flow, in PySpark or in plain Python.
- Mirroring and shortcuts make data available in Fabric without loading it yourself. Mirroring continuously replicates supported databases, and a shortcut reads data where it lives.
- Each tool is billed differently. Microsoft describes how in its documentation, and you'll find the links next to each tool.
Contents 7 sections
- 01Fabric Data Factory, an overview of the tools
- 02Fabric pipeline and Fabric Data Factory Copy job
- 03Dataflow Gen2 and how it differs from Gen1
- 04Fabric notebook: Spark or Python?
- 05Mirroring and shortcuts, when you don't need to copy
- 06Data that keeps flowing in
- 07FAQ
Fabric Data Factory, an overview of the tools
You load data into a lakehouse or warehouse in Microsoft Fabric with two groups of tools: loading wizards, such as Copy job, Mirroring or a pipeline, and tools you customize yourself, that is, Dataflow Gen2 and notebooks.
Wizards are mainly point-and-click tools that walk you through setting up the whole load in a series of screens and options. For migrating existing structured data they're one of the simplest routes, and they offer a lot of settings. The second group is more complex tools you customize yourself. They come in two flavors: mainly point-and-click, technically with the option of your own code, and fully code-based, that is, the notebook. Dataflow Gen2 is mainly for smaller volumes and a low-code or no-code approach, with plenty of built-in connectors. The notebook is the ultimate playground for developers, where you write everything exactly the way you need it.
Tools for loading data into Fabric
| Tool | What data it loads | How you work with it |
|---|---|---|
| Pipeline, copy activity | databases, files, SaaS apps and other sources from dozens of connectors; structured data, JSON, CSV, XML, even images or video | you put steps together: a copy, a loop over a list of tables, dependencies and notifications; you build incremental loading yourself |
| Copy job | tables from databases and files from storage, in full or incrementally; for databases with CDC enabled, updates and deletes too | a wizard has you pick the source, tables and destination; it keeps the incremental state itself |
| Dataflow Gen2 | hundreds of Power Query sources: databases, files, SharePoint, web services | in the Power Query editor without code; it writes the result to a lakehouse, warehouse, SQL database or another destination |
| Notebook, Spark | anything you write code for: files, APIs, databases, large volumes | PySpark, Spark SQL, Scala or R, full support for Delta tables |
| Notebook, Python | mainly smaller volumes, APIs and files; it handles large volumes too if you design the code smartly | plain Python on a single machine with libraries such as Polars or DuckDB |
| Mirroring | supported databases, for example Azure SQL Database, SQL Server, Azure Cosmos DB or Snowflake | you set it up once and Fabric keeps a continuous copy as read-only Delta tables |
| Shortcut | data that already lives in OneLake, ADLS, Azure Blob Storage, Amazon S3, Google Cloud Storage, Dataverse or SharePoint | the lakehouse only points to the data, nothing is copied |
Fabric pipeline and Fabric Data Factory Copy job
Both a pipeline and Copy job move data from the source into Fabric. The difference is how much you build yourself: in a pipeline you build the orchestration and the incremental loading, while Copy job keeps the incremental state itself.
A pipeline orchestrates. The copy activity inside it moves data from source to destination, and around it you build a loop over a list of tables, dependencies, notifications and retries. You run a pipeline manually, on a schedule or on an event, for example when a new file lands in OneLake. In a pipeline you build incremental loading yourself, that is, the watermark and where it's stored. Data movement is billed by how long the copy runs and orchestration by the number of activity runs; the rates are in the pipeline pricing.
Copy job makes copying simpler and has three modes: a full copy, one-off or recurring; an incremental copy based on a watermark column; and, for databases with CDC enabled, replication of changes including deletes. From storage it copies only the files that changed since the last run. It keeps the incremental state itself, so you don't build a control table. How Copy job is billed is described in the Copy job pricing.
Where the tools behave differently on real data than the documentation promises, and how we measured them, we write about on the blog.
Dataflow Gen2 and how it differs from Gen1
Dataflow Gen2 is Power Query in Fabric. If you know Power Query from Power BI or Excel, you can write one without learning anything new. It loads data from hundreds of sources, transforms it in an editor without code and writes the result to a lakehouse, warehouse, SQL database or another destination. You can run it on a schedule or as a step in a pipeline.
Gen1 stores its result in the dataflow's own storage and mainly serves semantic models in Power BI. It also works in a Pro workspace without a Fabric capacity. Gen2 needs a Fabric capacity, writes to destinations in Fabric and supports Git and deployment pipelines.
It's billed by how long the queries run; the details are in the Dataflow Gen2 pricing. How to speed up Dataflow Gen2 by splitting the computation into parts, with the settings and measurements, is described in the article on partitioned compute in Dataflow Gen2.
Fabric notebook: Spark or Python?
A Spark notebook handles large volumes and any transformation in PySpark, Spark SQL, Scala or R, and supports every Delta table feature. Watch the default write setting: a new workspace writes with the writeHeavy profile, which turns V-Order off. If Direct Lake will run on top of the tables, the readHeavyForPBI profile turns V-Order on (write profiles).
A Python notebook runs on a single machine without Spark and comes with preinstalled libraries such as Polars and DuckDB. The default machine is small, but with `%%configure` you can scale it up to 64 cores (Python in a notebook). If you like playing with code and tuning how data flows, you can do big things in Python too. You then control batch loading, lazy evaluation in Polars, writing to Delta tables through the deltalake library and table maintenance yourself. But you have more to keep an eye on. Some Delta table features, such as writing deletion vectors, only Spark can do, and Python doesn't compact small files after a write on its own. When each kernel pays off is described by Microsoft in its guide to choosing a kernel.
A notebook pulling data from a slow API keeps running even while it's just waiting for the source to respond, so you pay capacity for the waiting too.
Mirroring and shortcuts, when you don't need to copy
Mirroring keeps a continuous, read-only copy of a database as Delta tables in OneLake. You can mirror, for example, Azure SQL Database, SQL Server, Azure Cosmos DB or Snowflake. According to Microsoft, replication doesn't consume capacity and replica storage is free up to a limit based on the capacity size; queries over mirrored data are billed as usual (Mirroring cost). Details on SQL Server and on the limits of Mirroring are in the SQL Server to Fabric guide.
A shortcut doesn't copy data at all; the lakehouse only points to it. You can point to another lakehouse, warehouse or other item in OneLake, or to external storage. Reads through a shortcut within OneLake go to the capacity of the workspace where the shortcut lives, and storage is paid by the capacity where the data actually is. For a shortcut to external storage, such as ADLS or S3, Fabric doesn't charge capacity for reads, and the storage provider bills you for transactions directly. When the storage is in a different region from the capacity, you also pay for the transfer between regions (OneLake consumption).
Data that keeps flowing in
For events from devices and apps, or database changes in real time, Fabric has Eventstreams. They capture the data, lightly transform it and send it to an eventhouse, lakehouse or other destinations (Eventstreams overview).
FAQ
What's the difference between Dataflow Gen2 and Gen1?
Gen1 stores its result in its own storage and mainly serves semantic models in Power BI. Gen2 runs on a Fabric capacity and writes its result to a lakehouse, warehouse or another destination in Fabric, so notebooks, SQL and Direct Lake can use the data further.
When to use Copy job and when a pipeline?
Copy job is enough when you copy tables from a source into a lakehouse and want incremental loading without your own logic. A pipeline fits when the load needs dependencies, metadata-driven loops, notifications or several steps in a row.
Is a Python notebook cheaper than Spark?
Spark on a single node can cost about the same as Python, but on a smaller capacity you're limited in how many Spark notebooks can run at once. Spark takes cores from the capacity: according to Microsoft, F2 has 4 of them, 20 with bursting, and one node of the default pool needs 8. When the cores run out, Fabric rejects an interactive notebook and only queues jobs started from a pipeline or the scheduler (Spark concurrency limits). Yet plain Python handles most of the work if you design the code smartly. So our default is Python, and Spark only where each run processes gigabytes of data. You'll find a comparison on real data on the blog.
What should you use to load data from an on-premises SQL Server?
Either with Mirroring, which keeps a continuous copy and replicates outside the capacity, or with Copy job or a pipeline through the on-premises data gateway. On SQL Server 2016 to 2022, Mirroring has stricter requirements, such as a primary key on every table (SQL Server mirroring limitations).
Where do you stand?
Environment and Cost Audit
€2,100
We'll go through what brings data into your Fabric and how, what each route costs in CU, and where data silently goes missing along the way.