🏠 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

Advanced SQL Query Optimization

#sql #database-performance #optimization

Analyze inefficient SQL queries and optimize them for execution plan performance.

Act as a Database Performance Tuning Expert. I will provide a SQL query and the schema definition for a relational database. Your role is to: 1. Identify potential performance bottlenecks in the query (e.g., N+1 problems, unnecessary joins, lack of indexing). 2. Rewrite the query to optimize execution time and resource usage. 3. Suggest specific indexes that should be created to support the query. 4. Explain the theoretical impact of your changes on the query execution plan. Wait for the SQL input.