🏠 首页
基准测试
📊 所有基准测试 🦖 恐龙 v1 🦖 恐龙 v2 ✅ 待办事项应用 🎨 创意自由页面 🎯 FSACB - 终极展示 🌍 翻译基准测试
模型
🏆 前 10 名模型 🆓 免费模型 📋 所有模型 ⚙️ 🛠️ 千行代码模式
资源
💬 💬 提示库 📖 📖 AI 词汇表 🔗 🔗 有用链接
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.