explain.depesz.com

PostgreSQL's explain analyze made readable

Result: wnjd

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 1,603.843 ↓ 0.0 234,645 1

Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0) (actual time=1,595.370..1,603.843 rows=234,645 loops=1)

  • Task Count: 1
  • Tasks Shown: All
  • -> Task
  • Node: host=ec2-3-83-194-151.compute-1.amazonaws.com port=5432 dbname=citus
  • Planning time: 0.754 ms
  • Execution time: 2957.547 ms
2. 426.068 2,942.373 ↓ 4.6 234,645 1

Gather (cost=31,400.40..60,651.69 rows=50,639 width=8) (actual time=1,393.974..2,942.373 rows=234,645 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 312.702 2,516.305 ↓ 3.7 78,215 3

Merge Join (cost=30,400.40..54,587.79 rows=21,100 width=8) (actual time=1,363.647..2,516.305 rows=78,215 loops=3)

  • Merge Cond: (meetings.id = entity_associations.source_entity_id)
4. 125.667 887.950 ↑ 1.4 32,769 3

Sort (cost=30,399.79..30,518.31 rows=47,410 width=24) (actual time=836.211..887.950 rows=32,769 loops=3)

  • Sort Key: meetings.id
  • Sort Method: quicksort Memory: 4188kB
5. 762.283 762.283 ↑ 1.4 32,769 3

Parallel Seq Scan on meetings_108749 meetings (cost=0.00..26,717.71 rows=47,410 width=24) (actual time=0.036..762.283 rows=32,769 loops=3)

  • Filter: ((end_time >= '2017-08-04 00:00:00+00'::timestamp with time zone) AND (end_time <= '2018-09-04 23:59:59.999999+00'::timestamp with time zone) AND (company_id = 2928))
  • Rows Removed by Filter: 166140
6. 1,315.653 1,315.653 ↓ 1.7 438,035 3

Index Only Scan using entity_associations_source_to_target_107725 on entity_associations_107725 entity_associations (cost=0.56..65,910.75 rows=261,762 width=16) (actual time=0.100..1,315.653 rows=438,035 loops=3)

  • Index Cond: ((company_id = 2928) AND (source_entity_type = 27))
  • Heap Fetches: 291155