Learning Objectives
By the end of this chapter, you will be able to:
- Design and implement full and incremental data loads
- Prepare data for loading into a dimensional model
- Design and implement a loading pattern for streaming data
- Choose an appropriate data store
- Choose between Dataflows Gen2, notebooks, KQL, and T-SQL for data transformation
- Create and manage OneLake shortcuts
- Implement mirroring
- Ingest data by using pipelines
Executive Summary
- Full loads truncate and replace, incremental loads use watermarks or change feeds to add only what changed, and merge operations resolve inserts, updates, and deletes against a target Delta table.
- Dimensional preparation in Fabric centers on conformed dimensions and slowly changing dimension (SCD) patterns, executed in PySpark MERGE statements for Lakehouse tables, T-SQL MERGE for Warehouse tables, and update policies for KQL.
- Streaming ingestion uses Eventstreams, Spark Structured Streaming, and KQL Database update policies, each with its own windowing semantics and latency profile.
- Data store choice (Lakehouse, Warehouse, Eventhouse, SQL Database, OneLake shortcut, mirrored database) follows from workload type, write pattern, schema enforcement need, and SQL surface required.
- OneLake shortcuts virtualize remote data without copying, while mirroring replicates remote databases into OneLake as Delta tables for analytics and join-friendly access.
Assumptions
- The reader has hands-on experience with a Fabric workspace, the Lakehouse explorer, and the workspace permission model from the previous chapter.
- The reader can read PySpark, SQL, and KQL syntax at a working level.
- All examples assume a workspace named
wks-fabric-prodand a Lakehouse namedlkh_salesunless otherwise noted.
