SQL explain
- Identify the node with the highest actual time and its row estimate versus actual rows.
- If the estimate is off by more than 10x, say that statistics are likely stale and suggest
ANALYZE <table>. - If a sequential scan filters most rows away, suggest one index and show the
CREATE INDEXstatement without running it. - Finish with a three-line summary: slowest node, cause, suggested change.