VIP 👤
🏠 Startseite
Vergleiche
📊 Alle Benchmarks 🦖 Dinosaurier v1 🦖 Dinosaurier v2 ✅ To-Do-Listen-Apps 🎨 Kreative freie Seiten 🎯 FSACB - Ultimatives Showcase 🌍 Übersetzungs-Benchmark
Modelle
🏆 Top 10 Modelle 🆓 Kostenlose Modelle 📋 Alle Modelle ⚙️ Kilo Code
Ressourcen
💬 Prompt-Bibliothek 📖 KI-Glossar 🔗 Nützliche Links 🔌 KI-APIs & Router
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.