You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/unify/profiles-sync/index.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ You can access Selective Sync in two ways:
85
85
- From the Set Selective Sync page as you connect your warehouse to Profiles Sync.
86
86
- From the Profiles Sync settings (**Profiles Sync** > **Settings** > **Selective sync**).
87
87
88
-
You'll see a list of event type tables, event tables, and properties available to sync. Select the tables and properties that you'd like to sync, and be sure the ones you'd like to prevent from syncing aren't selected.
88
+
You'll see a list of event type tables, event tables, and [tables Segment materializes](/docs/unify/profiles-sync/tables/#tables-segment-materializes)available to sync. Select the tables and properties that you'd like to sync, and be sure the ones you'd like to prevent from syncing aren't selected.
89
89
90
90
Regardless of schema size, only the first 5,000 collections and 5,000 properties per collection can be managed using your Segment space. To edit Selective Sync settings for any collection which exceeds this limit, [contact Segment support](https://app.segment.com/workspaces?contact=1){:target="blank"}.
91
91
@@ -117,7 +117,6 @@ Segment lands the data on an internal staging location, then removes the backfil
117
117
118
118
Reach out to [Segment support](https://app.segment.com/workspaces?contact=1){:target="blank"} if your use case exceeds the scope of the initial setup backfill.
119
119
120
-
121
120
> success ""
122
121
> While historical backfill is running, you can start building [materialized views](/docs/unify/profiles-sync/tables/#tables-you-materialize) and running [sample queries](/docs/unify/profiles-sync/sample-queries).
123
122
@@ -183,9 +182,7 @@ In the **Connection settings** tab, you can verify your synced warehouse’s cre
183
182
If you have write access, you can verify that your warehouse is successfully connected to Segment by entering your password and then selecting **Test Connection**.
184
183
185
184
> info "Changing your synced warehouse"
186
-
> If you’d like to change the warehouse connected to Profiles Sync, [reach out to Segment support](https://segment.com/help/contact/).
187
-
188
-
<!-- Verify that this doesn't need to be changed -->
185
+
> If you’d like to change the warehouse connected to Profiles Sync, [reach out to Segment support](https://segment.com/help/contact/){:target="blank"}.
Visit the [selective sync](/docs/unify/profiles-sync/#using-selective-sync) setup page to enable the following materialized tables, which Segment disables by default.
231
+
232
+
You can also use [historical backfill](/docs/unify/profiles-sync/#using-historical-backfill) with tables Segment materializes.
233
+
234
+
> warning ""
235
+
> For materialized view tables, you must have delete permissions for your data warehouse.
236
+
237
+
238
+
### The user_traits table
239
+
240
+
With the `user_traits` table, you'll see all traits that belong to a profile, represented by the `canonical_segment_id`. Use this table for a complete picture of your Profiles Sync data with external data sources such as customer purchase history, product usage, and more.
241
+
242
+
- This view is a fixed schema, and contains a row for each trait associated with the profile.
243
+
- As new traits are added to the profile, new rows are added to the table.
244
+
245
+
When a merge occurs, two things happen:
246
+
1. Segment deletes the **merge from** profile in the table, along with with all the traits that belong to it.
247
+
2. Segment updates the **merge to** profile with the traits from the profile deleted in step 1.
248
+
- For any conflicting traits, Segment appends the most recent trait to the profile.
|`canonical_segment_id`| The fully-merged Segment ID (the profile Segment now understands any events or identifiers to map to). |
282
+
|`type`| The type of external identifier sent in the incoming event, such as `user_id` or `anonymous_id`. External identifiers become the identities attached to a user profile. |
283
+
|`value`| The value of the trait provided by the customer's Identify payload. |
284
+
|`seq`| A sequential value derived from the timestamp. Enables ordering/sorting within a given unique trait. |
285
+
|`received_at`| The timestamp when the Segment API receives the payload from the client or server. |
286
+
|`uuid_ts`| A unique identifier of the timestamp. |
287
+
|`timestamp`| The UTC-converted timestamp set by the Segment library. |
288
+
289
+
### The profile_merges table
290
+
291
+
The `profile_merges` table contains all mappings from a `segment_id` to a profile, represented by the `canonical_segment_id`. This mapping indicates that a profile has been created within Segment.
292
+
293
+
With the `profile_merges` table:
294
+
- There's one row per profile associated with the `canonical_segment_id` that represents the profile. This view is a fixed schema.
295
+
- When a profile is created, a new row is created with the `segment_id` and `canonical_segment_id` having the same value.
296
+
297
+
298
+
When a merge occurs:
299
+
1. Segment deletes the **merge from** profile, along with all Segment IDs that belong to it.
300
+
2. Segment updates the **merge to** profile with Segment IDs that previously belonged to the profile deleted in step 1.
0 commit comments