ReOrc docs
Get ReOrc
English
English
  • About ReOrc
  • Set up and deployment
    • Set up organization
    • Install ReOrc agent
  • Getting started
    • 1. Set up a connection
      • BigQuery setup
    • 2. Create a project
    • 3. Create data models
    • 4. Build models in console
    • 5. Set up a pipeline
  • Connections
    • Destinations
      • Google Service Account
    • Integrations
      • Slack
  • Data modeling
    • Overview
    • Sources
    • Models
      • Model schema
      • Model configurations
    • Jinja templating
      • Variables
      • Macros
    • Materialization
    • Data lineage
    • Data tests
      • Built-in generic tests
      • Custom generic tests
      • Singular tests
  • Semantic modeling
    • Overview
    • Data Modelling vs Semantic Layer
    • Cube
      • Custom Dimension
      • Custom Measure
        • Aggregation Function
        • SQL functions and operators
        • Calculating Period-over-Period Changes
      • Relationship
    • View
      • Primary Dimension
      • Add Shared Fields
    • Shared Fields
    • Integration
      • Guandata Integration
      • Looker Studio
  • Pipeline
    • Overview
    • Modeling pipeline
    • Advanced pipeline
    • Job
  • Health tracking
    • Pipeline health
    • Data quality
  • Data governance
    • Data protection
  • Asset management
    • Console
    • Metadata
    • Version history
    • Packages and dependencies
  • DATA SERVICE
    • Overview
    • Create & edit Data Service
    • Data preview & download
    • Data sharing API
    • Access control
  • AI-powered
    • Rein AI Copilot
  • Settings
    • Organization settings
    • Project settings
    • Profile settings
    • Roles and permissions
  • Platform Specific
    • Doris/SelectDB
Powered by GitBook
On this page
  • Table
  • View
  • Incremental
  • Ephemeral
  1. Data modeling

Materialization

PreviousMacrosNextData lineage

Last updated 14 days ago

When you run transformation in a model you can define how the generated results are stored, or materialized, in the target database. ReOrc supports the following materialization options.

  • Table

  • View

  • Incremental

  • Ephemeral

Depending on your transformation use cases, you can select different materialization strategies. You can view and configure materialization of a model in the section.

By default, all models are materialized as tables.

Table

Definition: Creates a table and stores the results when building the model. Every time the model is run, the table is dropped and recreated with the latest data.

Use case: Use when you want to physically store the data and prefer faster query performance at the cost of extra space.

View

Definition: Creates a view in the database. A view is simply a stored query and does not hold data; instead, it provides a virtual table environment for various complex operations.

Use case: Use views when you want to avoid storing a physical table and don’t mind the performance cost of re-running the query every time the view is accessed.

Incremental

Definition: Adds new or updated records to an existing table without recreating the entire table.

Use case: Ideal for very large datasets where it would be inefficient to rebuild the entire table each time. Only processes new or modified data since the last run.

Ephemeral

Definition: The model is not materialized at all. Instead, the model snippet is interpolated into the downstream models that reference it. This is similar to treating the model snippet as a common table expression (CTE).

Use case: Useful for intermediate computations that don't need to be stored but are referenced in downstream models.

Metadata