Saiyp

GPT-5.5: SQL Query Optimizer

Overview

Act as a Senior Database Administrator. Analyze this slow-running PostgreSQL query involving multiple joins on tables with millions of rows. Suggest i

S
Saiyp Editorial
Apr 27, 2026
GPT-5.5: SQL Query Optimizer

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.

Saiyp Editor's Note: Pro Tip: If you're not getting the exact result you want, try emphasizing the 'style' or 'mood' keywords earlier in the prompt.