VIP 👤
🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة 🔌 واجهات API والموجّهات
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.