VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
Expert

SQL Query Performance Optimizer

#sql #database #optimization

Reviews complex SQL queries for performance bottlenecks and suggests execution plan improvements.

Review the provided SQL query. Assume a standard relational database schema with millions of rows in the referenced tables. Analyze the query for potential full table scans, inefficient joins, and suboptimal use of CTEs or subqueries. Rewrite the query to optimize performance. Provide a line-by-line explanation of why your changes improve the execution plan, suggesting specific indexes that would further boost performance.