Temporary entity model
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- Data Management
Use temporary ETL entities to avoid repetitive operations in target entities.
In the temporary (temp) entity model, temporary entities serve as an intermediate between the input and target entities. Data is mapped from the input entity to the temp entity, then from the temp entity to the target entities. To use the temp entity model:
- Create a temp entity, with entity fields similar to the ones in the input entity. For example, if the input entity has a field named Type, the temp entity might have a field named Temp Type.
- Add an RTE entity mapping to map data from the input entity to the temp entity.
- In the temp entity, add new entity fields and entity operations to support the values required to map the data to the target entities.
- Add target entities and RTE entity mappings to map data from the temp entity to the target entities.
With this model, there's no need to define operations in the target entity. You create
operations only in the temp entity, then map the final values to the target entities.
Example: Teams ETL definition
- Group: a target entity
- Import Set: an input entity
- Member: a target entity
- Temp: the temporary, intermediate entity
- Import Set to Temp, which maps data from the input entity to the temp entity.
- Temp to Member, which maps data from the Temp entity to the Member target entity.
- Temp to Group, which maps data from the Temp entity to the Group target entity.
Conditional script
In some cases, you might not want to insert or update all the input data to a target table.
You can use a conditional script to pick which import set rows to map to a target entity. In the
following example, the Temp to Member RTE entity mapping uses a conditional script to specify
which rows to map from the Temp entity to the Member entity. Only rows with a type of
member
are mapped to the Member entity.