explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SoN3

Settings
# exclusive inclusive rows x rows loops node
1. 0.720 6,774.388 ↑ 1.0 51 1

Limit (cost=66,852.24..66,852.37 rows=51 width=24) (actual time=6,773.380..6,774.388 rows=51 loops=1)

2. 266.513 6,773.668 ↑ 1,835.1 51 1

Sort (cost=66,852.24..67,086.22 rows=93,591 width=24) (actual time=6,773.365..6,773.668 rows=51 loops=1)

  • Sort Key: thread.date_updated DESC, thread.id DESC
  • Sort Method: top-N heapsort Memory: 28kB
3. 554.330 6,507.155 ↑ 2.4 39,132 1

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

  • Hash Cond: (thread_participant_organization.thread_id = thread.id)
4. 310.228 378.799 ↑ 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=70.442..378.799 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. 68.571 68.571 ↓ 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=68.571..68.571 rows=400,911 loops=1)

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

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

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

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

  • Filter: (NOT anonymized)
Planning time : 0.336 ms
Execution time : 6,774.803 ms