finding-expensive-queries

Identifies and ranks costly Snowflake queries by cost, time, or scanned data.

Updated Jun 10, 2026
One-click install
npx skills add https://github.com/AltimateAI/altimate-opencode-plugin --skill finding-expensive-queries-altimateai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finding-expensive-queries
Source: https://github.com/AltimateAI/altimate-opencode-plugin/tree/main/skills/snowflake/finding-expensive-queries
Command: npx skills add https://github.com/AltimateAI/altimate-opencode-plugin --skill finding-expensive-queries-altimateai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps in pinpointing and addressing expensive queries in Snowflake, enhancing database performance and cost-effectiveness.

Core Features & Use Cases

  • Identify Costly Queries: Automatically rank queries based on cost, time, or data scanned.
  • Optimization Recommendations: Provides detailed metrics and optimization advice for query refinement.
  • Use Case: If you're experiencing unexpected costs in your Snowflake database or seeking to enhance query performance, this Skill is invaluable for identifying bottlenecks.

Quick Start

To find the most expensive queries for the past week, use: skill finding-expensive-queries --metric cost --days 7.

Frequently Asked Questions about finding-expensive-queries

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

FAQPage Schema
How do I find expensive Snowflake queries driving up costs?

You can identify expensive Snowflake queries by ranking them based on cost, execution time, or data scanned. This provides detailed metrics to pinpoint bottlenecks causing unexpected costs in your database environment.

What is the best way to analyze Snowflake query performance for cost management?

Analyzing Snowflake query performance for cost management involves ranking queries by execution cost and data volume. This approach highlights specific bottlenecks and provides optimization advice to refine and reduce overall database expenses.

How do I rank Snowflake queries by data scanned over a specific time period?

You can rank Snowflake queries by data scanned over a specific time period using the query metrics feature. For example, specify the metric and the number of days to analyze costly queries from the past week.

Do I need specific account access to identify costly Snowflake queries?

Yes, identifying costly Snowflake queries requires Snowflake querying capabilities and access to the appropriate Snowflake account metrics. This access is necessary to retrieve the cost, time, and data scanned data for analysis.

Why does my Snowflake query performance analysis show unexpected costs?

Your Snowflake query performance analysis shows unexpected costs due to expensive queries that scan large amounts of data or take excessive time. Identifying and optimizing these specific bottlenecks helps refine query performance and lower expenses.