explain.depesz.com

PostgreSQL's explain analyze made readable

Result: eI4hA

Settings
# exclusive inclusive rows x rows loops node
1. 0.601 6,692.064 ↑ 1.0 51 1

Limit (cost=66,852.24..66,852.37 rows=51 width=40) (actual time=6,691.181..6,692.064 rows=51 loops=1)

2. 260.399 6,691.463 ↑ 1,835.1 51 1

Sort (cost=66,852.24..67,086.22 rows=93,591 width=40) (actual time=6,691.167..6,691.463 rows=51 loops=1)

  • Sort Key: thread.date_updated DESC, thread_participant_organization.thread_id DESC
  • Sort Method: top-N heapsort Memory: 28kB
3. 574.895 6,431.064 ↑ 2.4 39,132 1

Hash Join (cost=35,550.58..63,729.85 rows=93,591 width=40) (actual time=5,554.302..6,431.064 rows=39,132 loops=1)

  • Hash Cond: (thread_participant_organization.thread_id = thread.id)
4. 304.238 368.094 ↑ 2.4 39,132 1

Bitmap Heap Scan on thread_participant_organization (cost=8,146.09..31,774.48 rows=93,591 width=16) (actual time=65.872..368.094 rows=39,132 loops=1)

  • Recheck Cond: ((organization_id = '8bc90562-4eeb-4c7b-8207-ad38c5e43331'::text) AND (organization_type = 'OPERATOR'::text))
  • Filter: has_contributed
  • Rows Removed by Filter: 361,779
  • Heap Blocks: exact=11,543
5. 63.856 63.856 ↓ 3.0 400,911 1

Bitmap Index Scan on idx_thread_participant_participant_id_participant_type (cost=0.00..8,122.69 rows=134,226 width=0) (actual time=63.856..63.856 rows=400,911 loops=1)

  • Index Cond: ((organization_id = '8bc90562-4eeb-4c7b-8207-ad38c5e43331'::text) AND (organization_type = 'OPERATOR'::text))
6. 2,729.251 5,488.075 ↑ 1.0 400,911 1

Hash (cost=20,043.11..20,043.11 rows=400,911 width=24) (actual time=5,488.075..5,488.075 rows=400,911 loops=1)

  • Buckets: 65,536 Batches: 8 Memory Usage: 3,247kB
7. 2,758.824 2,758.824 ↑ 1.0 400,911 1

Seq Scan on thread (cost=0.00..20,043.11 rows=400,911 width=24) (actual time=0.074..2,758.824 rows=400,911 loops=1)

  • Filter: (NOT anonymized)
Planning time : 0.399 ms
Execution time : 6,692.495 ms