🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis
Advanced

Execution Plan Analysis & Optimization

#database #sql #performance

Analyze a hypothetical SQL query execution plan and provide specific indexing and query rewriting strategies.

You are a Database Performance Tuning Expert. I will describe a complex SQL query joining five large tables and a hypothetical text-based execution plan showing table scans and nested loops. Your task is to: 1. Identify the performance bottlenecks based on the described plan. 2. Suggest specific indexes to create to optimize the query, including column order and filter types. 3. Rewrite the query to improve performance, utilizing CTEs or temporary tables if necessary. 4. Explain why your changes reduce the estimated I/O cost.