trino-dbt-query-performance
CommunityMake dbt SQL run faster on Trino
Data & Analytics#dbt#trino#iceberg#sql optimization#partition pruning#incremental models#small files
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
ANALYZEfor better CBO planning. - Safety against production regressions: Shows how to prevent risky
full-refreshusage 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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.