explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gF7L

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

GroupAggregate (cost=4,248,844.76..4,252,874.61 rows=161,194 width=89) (actual rows= loops=)

  • Group Key: ncm.id
2. 0.000 0.000 ↓ 0.0

Sort (cost=4,248,844.76..4,249,247.75 rows=161,194 width=50) (actual rows= loops=)

  • Sort Key: ncm.id
3. 0.000 0.000 ↓ 0.0

Gather (cost=1,236,858.47..4,234,902.74 rows=161,194 width=50) (actual rows= loops=)

  • Workers Planned: 2
4. 0.000 0.000 ↓ 0.0

Nested Loop (cost=1,235,858.47..4,217,783.34 rows=67,164 width=50) (actual rows= loops=)

5. 0.000 0.000 ↓ 0.0

Nested Loop (cost=1,235,857.90..3,535,560.13 rows=93,086 width=59) (actual rows= loops=)

  • Join Filter: (((NOT ncm.filter_out) OR (ucm.source = ANY ('{lex_metadata,lex_sigblock}'::text[]))) AND (ncm.id = ucm.id))
6. 0.000 0.000 ↓ 0.0

Parallel Hash Join (cost=1,235,857.33..2,473,525.40 rows=144,860 width=76) (actual rows= loops=)

  • Hash Cond: (ncm_other.attorney_cluster_id = ncm.id)
7. 0.000 0.000 ↓ 0.0

Parallel Seq Scan on normalized_counsel_mention_20191023174259 ncm_other (cost=0.00..1,161,616.87 rows=28,971,887 width=42) (actual rows= loops=)

8. 0.000 0.000 ↓ 0.0

Parallel Hash (cost=1,234,046.58..1,234,046.58 rows=144,860 width=34) (actual rows= loops=)

9. 0.000 0.000 ↓ 0.0

Parallel Seq Scan on normalized_counsel_mention_20191023174259 ncm (cost=0.00..1,234,046.58 rows=144,860 width=34) (actual rows= loops=)

  • Filter: (id = attorney_cluster_id)
10. 0.000 0.000 ↓ 0.0

Index Scan using unnormalized_counsel_mention_pkey on unnormalized_counsel_mention ucm (cost=0.57..7.32 rows=1 width=22) (actual rows= loops=)

  • Index Cond: (id = ncm_other.attorney_cluster_id)
11. 0.000 0.000 ↓ 0.0

Index Scan using unnormalized_counsel_mention_pkey on unnormalized_counsel_mention ucm_other (cost=0.57..7.32 rows=1 width=22) (actual rows= loops=)

  • Index Cond: (id = ncm_other.id)
  • Filter: ((NOT ncm_other.filter_out) OR (source = ANY ('{lex_metadata,lex_sigblock}'::text[])))