Data · Version 1.5.0 · Reviewed 2026-08-02
SQL Window Function Advisor
Make data systems more correct and operable for ranking and dedup and running aggregates with evidence, explicit trade-offs, and a verification plan.
4 method steps
6 documented failure modes
5 diagnostic checks
7 quality gates
Designs window functions, frames, and partitioning for ranking, running totals, gaps, and deduplication.
₹99 one-time
Get this skill archive
What it checks first
SQL Window Function Advisor designs window functions, frames, and partitioning for ranking, running totals, gaps, and deduplication. Use it when the work involves Ranking and dedup, Running aggregates, Frame specification.
- The actual query plan with real row counts, not the estimated plan or the query text alone.
- Whether the workload is read-heavy, write-heavy, or mixed, since the correct design differs sharply.
- Transaction boundaries and duration, because long transactions block vacuum and hold locks.
- Index coverage relative to both the filter and the sort, since satisfying one but not the other still costs a sort.
- Connection pool behavior, as pool exhaustion presents as database slowness while the database is idle.