dbt - Performance Optimization
Given this dbt model SQL code:
What is the main reason this query helps reduce warehouse costs compared to selecting all sales data without filtering?
SELECT user_id, SUM(amount) AS total
FROM sales
WHERE sale_date > '2024-01-01'
GROUP BY user_id
What is the main reason this query helps reduce warehouse costs compared to selecting all sales data without filtering?
