Join our Community Kickstart Hackathon to win a MacBook and other great prizes

Sign up on Discord
Back to Product Updates

Partitioning & clustering for BigQuery assets

Optimize your BigQuery storage and query performance through partitioning and clustering.

{{ config(
    materialized='table',
    partition_by={
      "field": "orderdate",
      "data_type": "date",
      "granularity": "month"
    },
    
    cluster_by = ['customerid', 'orderid'],
  )
}}

with orders AS (
  select 
    orderid, 
    customerid, 
    employeeid, 
    orderdate, 
    price
  from {{ source('mdm-prod', 'orders') }}
)
select * from orders

Learn about partitioning and clustering configurations →