VIP 👤
🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links 🔌 AI-API's en routers
advanced

Enterprise SQL Query Performance Tuner

#sql #database #optimization #performance

Advanced prompt for analyzing and optimizing complex SQL queries for execution plans and index efficiency.

Assume the role of a Database Performance Tuning Expert. Analyze the following complex SQL query designed for a PostgreSQL database. Critique the query for potential full table scans, inefficient joins, subquery execution orders, and N+1 problems. Suggest specific indexing strategies to support the query. Rewrite the query to optimize for read performance, assuming a dataset of 100 million rows, and explain the execution plan changes your rewrite would induce.