Store Composite
Applies to
Platform: Microsoft SQL Server · Snowflake · Databricks · Fabric Lakehouse · Fabric Warehouse · Oracle
Architecture: Data Store
A Store Composite prepares data in the Store layer with joins, filters, expressions and aggregations on Stages or other Store Composites. Use it for an intermediate result that a Store Entity or another Store Composite reads. By default it is a view; with Implementation Type Cached it is a table that each load empties and refills.
Sources and relationships
A Store Composite reads Stages and other Store Composites in exactly one dataflow. It has no relationships. A Store Entity or another Store Composite reads its result view.
Create a Store Composite
- With the wizard: open the menu of a Stage or Store Composite, choose Automate and then Create Store Composite. Its steps are Create Model Object, Create Dataflow, Map Selected Terms and Add to View. See Create a Model Object with the wizard.

- Manually: create a model object of type Store Composite in the Data Store column, create a dataflow set, add the source model objects and map the terms.
Then add joins, a where clause or expressions to the dataflow sets as the composite needs.
Properties
- Implementation Type:
Virtual(default) creates views only, so every query reads the current Stage data.Cachedadds a table that the loader empties and refills on every load. - Deduplication Method:
None(default),DistinctorPartition, with Sort Order within Partition. A method other thanNoneadds a deduplication view.
Default Terms
BG_LoadTimestamp: withCached, the loader writes the timestamp of the load. WithVirtual, the term is NULL unless you map it.BG_SourceSystem: the source system of the row; empty unless you map it.
Generated objects
The part flow of Store Composite shows which parts it can get and under which settings; the legend explains the symbols.

These are the names on Microsoft SQL Server for a Store Composite large_branch:
| Role | Generated name | Purpose | Generated when |
|---|---|---|---|
| Source | DS_SC_large_branch_Source | Joins, filters and maps the sources | Always |
| Deduplication | DS_SC_large_branch_Deduplication | Removes duplicate rows | Deduplication Method Distinct or Partition |
| Loader | DS_SC_large_branch_Loader | Empties and refills the table | Implementation Type Cached |
| Storage | DS_SC_large_branch | Composite table | Implementation Type Cached |
| Result | DS_SC_large_branch_Result | View read by the next model object | Create Result Views true |
Generated parts of model objects shows the order in which a load runs the parts and the settings that add or remove them.
Example
The Store Composite large_branch on Microsoft SQL Server keeps only the large branches of the Stage branch. It has the default Implementation Type Virtual and maps the business terms of the Stage; BG_LoadTimestamp is not mapped. Its dataflow set has this where clause, in which s1 is the alias of the Stage:
s1.MARKET_SIZE = 'large'
The generated source view ends with:
FROM [<database name>].[stg].[STG_ST_branch_Result] AS [s1] WHERE [s1].[MARKET_SIZE] = 'large'
<database name> is the Stage database you set before deployment, and stg is the Stage schema of the example. The Stage branch holds three branches after load 1 and two after load 2:
- Load 1: 1 Basel
large, 2 Bernsmall, 3 Zurichlarge. - Load 2: Zurich is deleted, and Bern changes to
large.
Check the result
Query the result view, here in the schema ds:
SELECT BRANCH_ID, BRANCH_NAME, MARKET_SIZE FROM ds.DS_SC_large_branch_Result ORDER BY BRANCH_ID;
After load 1:
BRANCH_ID BRANCH_NAME MARKET_SIZE 1 Basel large 3 Zurich large
After load 2 of the Stage; a Virtual Store Composite has no loader:
BRANCH_ID BRANCH_NAME MARKET_SIZE 1 Basel large 2 Bern large
- Bern appears and Zurich disappears as soon as the Stage is reloaded, because the views read the result view of the Stage.
- With
Cached, the result changes only after the loader of the Store Composite has run.
Platform differences
The rules for names, loaders, deployment, platform properties and defaults are in Model object types on each platform. The Store Composite differs from them in these points:
- Snowflake: the table of a
CachedStore Composite is a transient table, and the load control taskLC_DS_SC_<model object name>_TASKcalls its loader.
Limitations
- A Store Composite has exactly one dataflow and no relationships.
- An aggregation must be defined in all dataflow sets or in none.
- A Store Composite keeps no history; it has no validity terms.
Related articles
- Previous: Stage
- Next: Store Entity
- Reference: Implementation Type (Model Object), Deduplication Method (Dataflow), Sort Order within Partition (Dataflow), BG_LoadTimestamp, BG_SourceSystem, Model object types on each platform, Generated parts of model objects
- See also: Create a Model Object with the wizard, Model a Data Store Solution