explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lVMP

Settings
# exclusive inclusive rows x rows loops node
1. 0.650 7,057.721 ↑ 1.0 51 1

Limit (cost=66,852.24..66,852.37 rows=51 width=24) (actual time=7,056.789..7,057.721 rows=51 loops=1)

2. 260.692 7,057.071 ↑ 1,835.1 51 1

Sort (cost=66,852.24..67,086.22 rows=93,591 width=24) (actual time=7,056.775..7,057.071 rows=51 loops=1)

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

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

  • Hash Cond: (thread_participant_organization.thread_id = thread.id)
4. 352.101 686.121 ↑ 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=338.729..686.121 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. 334.020 334.020 ↓ 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=334.020..334.020 rows=400,911 loops=1)

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

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

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

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

  • Filter: (NOT anonymized)
Planning time : 0.583 ms
Execution time : 7,058.180 ms