Intro to Models

๐Ÿ“˜ Model Overview โ€“ Creating Models in AudienceSync

๐Ÿง  Introduction

Models in AudienceSync help you define and organize data from multiple sources, making it easier to build efficient, query-ready datasets.

This guide walks you through the end-to-end model creation processโ€”from selecting a data source to defining your model using SQL, Table Selector, or dbt.


๐Ÿ—‚๏ธ Understanding the Model Creation Workflow

The model-building process in AudienceSync is streamlined across six main steps:


โœ… Step 1: Navigate to the Models Section

  • Log into your AudienceSync dashboard.
  • From the sidebar, click Define โ†’ Models.

โž• Step 2: Add a New Model

  • Click Add Model to start.
  • Choose your preferred modeling method:
    • SQL Query
    • Table Selector
    • dbt Model

๐Ÿ›ข๏ธ Step 3: Select a Data Source

  • Choose a connected data warehouse from your list of integrations.
  • This will serve as the foundation for your model.

โš™๏ธ Step 4: Select a Modeling Method

Choose one of the following:

  • SQL Query โ€“ Write a custom query to define your model.
  • Table Selector โ€“ Use a visual interface for building models.
  • dbt Model โ€“ Reference prebuilt dbt models for advanced transformation.

โœ๏ธ Step 5: Define Your Model

If using SQL Query:

  • Write your SQL directly in the editor.
  • Click Run Query to preview results and confirm the structure.

๐Ÿ Step 6: Finalize Your Model

  • Provide a descriptive name and brief description for clarity and future reference.

๐Ÿ”‘ Unique Primary Key Requirement

Every model must include a unique primary key.

Why it matters:

  • A unique key ensures each record can be uniquely identified.
  • It's critical for accurate data synchronizationโ€”tracking only new or updated rows.

How to configure:

  • During model setup, select a column with unique values.
  • If no such column exists, consider creating a composite key or transforming the data to ensure uniqueness.

Once complete, your model is ready for activation within AudienceSync!

Did this answer your question?
๐Ÿ˜ž
๐Ÿ˜
๐Ÿคฉ

Last updated on August 6, 2021