Skip to content

Commit 4153187

Browse files
authored
Merge pull request segmentio#5135 from segmentio/master
Master back to Develop after Profiles Sync deploy
2 parents db181fa + f8f7f61 commit 4153187

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/unify/files/ERD.png

52.1 KB
Loading

src/unify/profiles-sync/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Profiles Sync sends profiles to your warehouse on an hourly basis, beginning aft
110110
111111
When Segment runs historical backfills:
112112

113-
- The `id_graph_updates` and `external_id_mapping_updates` tables sync your entire historical data to your warehouse.
113+
- The `id_graph_updates`, `external_id_mapping_updates`, and `profile_traits_updates` tables sync your entire historical data to your warehouse.
114114
- Profiles Sync gathers the last two months of all events, including those from the `identities`, `page`, `screens`, and `tracks` tables, and syncs them to your warehouse.
115115

116116
Segment lands the data on an internal staging location, then removes the backfill banner. Segment then syncs the backfill data to your warehouse.

src/unify/profiles-sync/tables.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@ The anonymous site visits sample used earlier would generate the following event
147147
In this table, Segment shows three observed identifiers. For each of the three identifiers, Segment outputs the Segment ID initially associated with the identifier.
148148

149149

150+
### The profile_traits_updates table
151+
152+
The `profile_traits_updates` table maps each `segment_id` with all associated profile traits.
153+
154+
Segment updates this table:
155+
- for each identify call that updates one or more traits for a `segment_id`.
156+
- for any merge where traits from two previously separated profiles are now combined.
157+
158+
In the event that two profiles merge, Segment only updates the `profile_traits_updates` table for the `canonical_segment_id`, or the fully merged id.
159+
160+
From the `profile_traits_updates` table, use Segment's [open-source dbt models](https://github.com/segmentio/profiles-sync-dbt){:target="_blank"}, or your own tools to materialize the [`profile_traits`](#the-profile-traits-table) table with all profiles and associated profile traits in your data warehouse.
161+
150162
### The identifies, page, screens, and track tables
151163

152164
These tables show the instrumented events themselves. Entries in these tables reflect payloads that you instrument according to the Segment spec.

0 commit comments

Comments
 (0)