Skip to main content

Slow Queries

The Slow Queries page displays a comprehensive list of all SQL queries that exceeded the configured slow-execution threshold. This page helps you monitor slow query performance, identify issues, and analyze slow-running query patterns.


Slow Queries List

Slow Queries

When slow queries exist, they appear in a structured view with summary counts at the top.

Slow Query Statistics

At the top of the page, a summary metric is displayed:

  • Total Slow Queries — Shows the total number of queries that exceeded the slow threshold.

Date Range Filter

Filter slow queries by time period:

  • All - Shows all slow queries regardless of date (default)
  • Last 24 hours - Shows slow queries executed in the past 24 hours
  • Last 7 days - Shows slow queries executed in the past week
  • Last 30 days - Shows slow queries executed in the past month
  • Custom range - Select specific start and end dates for filtering

Date Filter

Query ID Search

Search for specific query by entering full query ID. Results update as you type.

Slow Query Attributes

FieldDescriptionUse Case
Query IDClickable unique query identifier with a copy buttonShare or reference the query easily
Warehouse NameWarehouse where the query executedIdentify which warehouse is handling heavy workloads
User NameUser who ran the queryTrack query ownership and usage patterns
Bytes ScannedTotal data scannedDetect expensive scans requiring optimization
Bytes WrittenTotal data writtenIdentify write-heavy operations
DurationTotal execution time (displayed in red)Quickly spot long-running queries
Start Date/TimeTimestamp when the query startedRelate slow queries with usage spikes or scheduled jobs

Available Actions

Displays a three-dot menu icon (⋮) for each query, providing quick access to query operations.

Slow Queries Actions Menu

Query Details

Opens the detailed query information page showing complete query text, execution plan, and performance metrics.

Analyze

Opens the Query Analyzer tool with the selected query pre-loaded to evaluate execution patterns, resource usage, and identify performance inefficiencies.

Optimize

Opens the Query Optimizer tool with the selected query pre-loaded to receive AI-powered optimization suggestions and query restructuring recommendations.


Query Details

Query Details

The Query Details page provides a complete breakdown of a selected query, including performance metrics, warehouse usage, resource consumption, and executed SQL text. This helps you understand execution behavior, identify performance issues, and analyze resource usage.

Key Metrics

The top section displays core execution statistics:

MetricDescription
DurationTotal time taken to execute the query
CreditsNumber of Snowflake credits consumed by the query
Bytes ScannedAmount of data scanned during execution
Bytes WrittenData written as part of the query output

Execution Information

FieldDescription
WarehouseThe warehouse used to execute the query
Start TimeThe timestamp when execution began
End TimeThe timestamp when execution completed
Query TagCustom tag applied to the query (if available)

Executed Query

Displays the full SQL text executed by the user.
Use the copy icon to copy the entire query to clipboard for sharing or further analysis.

Next Steps

Click Analyze to open the Query Analyzer with the executed query preloaded.
Use Analyzer to review execution plan, understand performance characteristics, and identify optimization opportunities.