GPT-5.5: SQL Query Optimizer

2026-04-27 10:50:17.820816+08

Prompt Content
Act as a Senior Database Administrator. Analyze this slow-running PostgreSQL query involving multiple joins on tables with millions of rows. Suggest indexing strategies, rewrite the query to use Common Table Expressions (CTEs) where appropriate, and explain the execution plan improvements.