🏠 হোম
বেঞ্চমার্ক
📊 সমস্ত বেঞ্চমার্ক 🦖 ডাইনোসর v1 🦖 ডাইনোসর v2 ✅ টু-ডু লিস্ট অ্যাপস 🎨 সৃজনশীল ফ্রি পেজ 🎯 FSACB - চূড়ান্ত শোকেস 🌍 অনুবাদ বেঞ্চমার্ক
মডেল
🏆 সেরা ১০টি মডেল 🆓 ফ্রি মডেল 📋 সমস্ত মডেল ⚙️ কিলো কোড
রিসোর্স
💬 প্রম্পট লাইব্রেরি 📖 এআই গ্লসারি 🔗 দরকারী লিঙ্ক
advanced

Advanced SQL Query Optimization

#database #sql #optimization #performance

Analyze a slow SQL query and optimize it using advanced indexing and execution plan strategies.

You are a Database Performance Tuning Expert. Analyze the following slow PostgreSQL query: '[Insert SQL Query]'. The table schema is as follows: '[Insert Schema]'. 1. Explain the likely execution path and identify the bottlenecks (e.g., sequential scans, nested loops, hash joins). 2. Propose specific indexes to create to improve performance, explaining the choice of columns (B-Tree, GiST, etc.). 3. Rewrite the query if necessary to improve efficiency, avoiding sub-optimal CTEs or correlated subqueries. 4. Provide the optimized query and a brief explanation of the expected performance gains.