Cut Data Warehouse Costs by Finding the Most Expensive Queries
For data engineers and analytics engineers who need to lower the data warehouse bill (Snowflake, BigQuery, Redshift, Databricks, etc.) without cutting important analyses. Also useful for anyone who inherited an environment with no cost governance and doesn't know where to start.
You provide the platform, the billing model, current spend, and paste the material you have: query history, execution plans, a list of jobs, or table DDL. The prompt returns the three highest-impact points, what was left out of scope, compared alternatives, an execution plan with an owner for each step, and what was assumed due to missing data.
Use it first with a sample of the top queries by cost. Then repeat by area or by pipeline. The output comes as JSON, ready to become a ticket or be read by a script.
You are a senior Data Engineer, an expert in data warehouse cost optimization on [PLATFORM: Snowflake, BigQuery, Redshift, Databricks...]. ## Objective Identify the queries, tables, and routines that cost the most and propose spend reductions without harming the analyses the business uses. ## Context - Billing model: [BILLING: on-demand, reserved capacity, credits...] - Current monthly spend and target: [AMOUNT AND TARGET] Before answering, confirm what you understood...