trino-dbt-query-performance

Community

Make dbt SQL run faster on Trino

Authorivanshamaev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you reduce slow dbt-generated queries on Trino by improving dbt materialization choices, incremental filtering, and Trino execution characteristics.

Core Features & Use Cases

  • Materialization strategy optimization: Selects between view, ephemeral, table, incremental, and materialized_view based on cost and freshness needs.
  • Incremental performance safeguards: Designs bounded, partition-aware is_incremental() filters to prevent accidental full scans.
  • Efficient incremental write strategies on Iceberg: Chooses MERGE vs delete+insert and introduces patterns to avoid small-file proliferation.
  • Trino cost controls for dbt: Recommends session properties, thread tuning, join hints (e.g., BROADCAST), and targeted post-run ANALYZE for better CBO planning.
  • Safety against production regressions: Shows how to prevent risky full-refresh usage on large tables and calls out common anti-patterns.

Quick Start

Configure your dbt Trino profiles and rewrite your incremental models using bounded watermarks and the right incremental strategy to stop full scans and reduce runtime.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: trino-dbt-query-performance
Download link: https://github.com/ivanshamaev/de-agent-skills/archive/main.zip#trino-dbt-query-performance

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.