Skip to content

Commit 4237066

Browse files
authored
Edit Materialized Views Section.md
added instructions to enable materialized views for profiles sync customers.
1 parent b2aa094 commit 4237066

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

src/unify/profiles-sync/tables.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,47 @@ Segment's Identity Resolution has processed these events, which contain a `segme
256256
257257

258258

259-
## Tables Segment materializes
259+
## Tables Segment Materializes
260260

261261
With Profiles Sync, you can access the following three tables that Segment materializes for a more complete view of your profile:
262+
262263
- [`user_traits`](#the-user_traits-table)
263264
- [`user_identifiers`](#the-user_identifiers-table)
264265
- [`profile_merges`](#the-profile_merges-table)
265266

266-
These materialized tables provide a snapshot of your Segment profiles, batch updated according to your sync schedule.
267+
These materialized tables provide a snapshot of your Segment profiles, batch updated according to your sync schedule.
268+
269+
### Switching to Materialized Profile Sync
270+
271+
If you are currently not using materialized views for Profile Sync and would like to switch, follow these steps:
267272

268-
Visit the [selective sync](/docs/unify/profiles-sync/#using-selective-sync) setup page to enable the following materialized tables, which Segment disables by default.
273+
1. **Enable Materialized Views via Selective Sync**
274+
- Navigate to **Unify** on the sidebar and select **Profiles Sync**.
275+
- Ensure you are viewing the **Engage space** you would like to enable materialized views for.
276+
- Go to **Settings****Selective Sync** and enable the following tables:
277+
- `user_traits`
278+
- `user_identifiers`
279+
- `profile_merges`
269280

270-
You can also use [historical backfill](/docs/unify/profiles-sync/profiles-sync-setup/#using-historical-backfill) with tables Segment materializes.
281+
2. **Request a Full Profiles and Events Backfill**
282+
- After enabling the materialized views, you'll need to ensure historical data is populated in the materialized tables.
283+
- Write to [[email protected]](mailto:[email protected]){:target="_blank"} and request:
284+
- A full **Profiles Backfill** to populate historical profiles data.
285+
- An **Events Backfill** to include any relevant historical events. Please share a date range for us to pull data in for the events backfill.
286+
287+
3. **Verify Your Data**
288+
- Once the backfill is complete, review the data in your warehouse to confirm all necessary historical information has been included.
271289

272290
> warning ""
273291
> For materialized view tables, you must have delete permissions for your data warehouse.
274292
293+
### Why Materialized Views?
294+
295+
Materialized views offer several advantages:
296+
- **Faster Queries:** Pre-aggregated data reduces query complexity.
297+
- **Improved Performance:** Access enriched profiles and historical events directly without manual joins.
298+
- **Data Consistency:** Automatically updated views ensure your data stays in sync with real-time changes.
299+
275300

276301
### The user_traits table
277302

0 commit comments

Comments
 (0)