warehouse-optimization

Optimize data warehouse performance with clustering, partitioning, and query tuning.

1|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/nrakow/ae-skills-dev --skill warehouse-optimization-nrakow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: warehouse-optimization
Source: https://github.com/nrakow/ae-skills-dev/tree/main/skills/warehouse-optimization
Command: npx skills add https://github.com/nrakow/ae-skills-dev --skill warehouse-optimization-nrakow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps analytics teams reduce query latency and cloud spend by applying targeted clustering, partitioning, materialization strategies, and query tuning to data warehouses.

Core Features & Use Cases

  • Diagnostics-first optimization: profile expensive queries using baseline metrics and identify bottlenecks.
  • Cross-platform optimization guidance: clustering, partitioning, and warehouse sizing tailored to Snowflake, BigQuery, Redshift, and Databricks.
  • Workflow guidance: provide checks and steps to baseline, validate improvements with tooling, and update dbt configurations.
  • Use cases: optimize production workloads, tune large dashboards, and cut run costs on scheduled jobs.

Quick Start

Run the baseline tooling to profile expensive queries and then apply clustering, partitioning, materialization, and sizing changes to optimize performance and reduce costs.

Frequently Asked Questions about warehouse-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce query latency and warehouse compute costs in dbt?

Data warehouse optimization applies clustering, partitioning, and materialization strategies to reduce query latency and compute costs. It profiles expensive queries using baseline metrics to identify bottlenecks across staging, marts, and core dbt models.

Does this optimization skill work with BigQuery and Redshift?

Yes, this optimization skill provides cross-platform guidance tailored to Snowflake, BigQuery, Redshift, and Databricks. It adjusts clustering, partitioning, and warehouse sizing recommendations based on your specific data warehouse platform.

What's the best way to tune slow dbt dashboard queries?

The best way to tune slow dbt dashboard queries is to first run baseline tooling to profile expensive queries, then apply clustering, partitioning, and materialization changes to the underlying models, and finally validate improvements using the provided metrics tools.

How do I profile expensive dbt queries to identify performance bottlenecks?

You profile expensive dbt queries by running the included cli tools, cost-estimate.js and model-stats.js, which read context from your data stack. These tools generate baseline metrics that highlight performance bottlenecks and cost pressure.

When should I apply clustering vs partitioning for dbt model optimization?

You apply clustering and partitioning based on query patterns identified during baseline profiling. The skill analyzes your model stats and query performance to recommend specific clustering keys and partitioning strategies for staging, marts, and core models.