You define your data model in Data Workbench > Master Segments.
In Treasure Data Workflows (Data Workbench > Workflows
) a series of workflows are automatically generated to create and refresh the master segment data model. Data in the data model is refreshed according to the schedule that you define for the master segment.
Creating and Defining Master Segments
From the TD Console, select Data Workbench > Master Segments.
Select New Master Segment.
Specify Master Table , Attribute Tables , and Behavior Tables.
Specify the schedule by which the master segment data is refreshed. We recommend that you run a refresh on a daily basis, to renew the dataset. The master table needs to be updated as well, before master segment creation begins.
Optionally, specify the default timezone.
Specify the Master database and table name. For example:
Optionally, specify the resource pool. This allows you to define how your allotted Treasure Data resources are used to process the data.
We generally recommend Hive only, because it’s designed for large-scale joins and known for robustness, while Presto and Hive might perform faster for smaller data sets.
Optionally, specify the attribute tables. The Foreign Key and Join Key is used to join Master Table with Attribute Tables. Include a td_ column here for automatic data enrichment.
Optionally, specify tables from which behaviors can be derived. Use the Name field to give a user-friendly name to the specific column. Include a td_ column here for automatic data enrichment.
Save, name, and run your master segment.
Optionally, view the progress of the workflow that is created by defining the master segment. From the main navigation, select Data Workbench > Workflows and select the Master Segment filter.
To verify that the process ran and created your master segment, navigate to Profiles.