
Materialized views automatically maintain aggregated data but come with maintenance costs. Learn when they save money versus when standard tables are better.

Materialized views automatically maintain aggregated data but come with maintenance costs. Learn when they save money versus when standard tables are better.
Scenario: Daily aggregation over 1B rows
- Query cost without MV: 5 credits × 500 queries/day = 2,500 credits/day
- MV creation: 10 credits
- MV maintenance: 8 credits/day (1 daily refresh)
- MV query cost: 0.1 credits × 500 queries/day = 50 credits/day
Savings with MV: 2,500 - 58 = 2,442 credits/day
CREATE MATERIALIZED VIEW daily_sales_summary AS
SELECT
DATE_TRUNC('day', order_date) as sale_date,
product_category,
SUM(order_total) as total_sales,
COUNT(*) as order_count
FROM orders
GROUP BY 1, 2;
A company created materialized views on 10 tables that updated every 5 minutes. Maintenance costs were 2,000 credits/day. After analysis, they found only 3 tables were queried frequently enough to justify MVs. They converted the other 7 to scheduled table refreshes (hourly), reducing maintenance costs to 400 credits/day.
Uncover hidden inefficiencies and start reducing Snowflake spend in minutes no disruption, no risk.