explain.depesz.com

PostgreSQL's explain analyze made readable

Result: P47

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

Custom Scan (Citus Router) (cost=0.00..0.00 rows=0 width=0) (actual time=570.725..570.731 rows=141 loops=1)

  • Task Count: 1
  • Tasks Shown: All
  • -> Task
  • Node: host=ec2-3-91-129-165.compute-1.amazonaws.com port=5432 dbname=citus
  • Planning time: 0.443 ms
  • Execution time: 663.560 ms
2. 0.121 662.059 ↑ 13.0 141 1

Finalize GroupAggregate (cost=115,021.53..115,067.48 rows=1,838 width=16) (actual time=661.895..662.059 rows=141 loops=1)

  • Group Key: meetings.company_user_id
3. 0.000 661.938 ↑ 8.8 419 1

Sort (cost=115,021.53..115,030.72 rows=3,676 width=16) (actual time=661.889..661.938 rows=419 loops=1)

  • Sort Key: meetings.company_user_id
  • Sort Method: quicksort Memory: 44kB
4. 42.066 663.159 ↑ 8.8 419 1

Gather (cost=114,417.86..114,803.84 rows=3,676 width=16) (actual time=587.792..663.159 rows=419 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
5. 26.984 621.093 ↑ 13.1 140 3

Partial HashAggregate (cost=113,417.86..113,436.24 rows=1,838 width=16) (actual time=621.038..621.093 rows=140 loops=3)

  • Group Key: meetings.company_user_id
6. 101.267 594.109 ↓ 3.6 78,217 3

Merge Join (cost=29,248.71..113,309.29 rows=21,715 width=8) (actual time=245.711..594.109 rows=78,217 loops=3)

  • Merge Cond: (meetings.id = entity_associations.source_entity_id)
7. 30.159 98.244 ↑ 1.4 32,769 3

Sort (cost=29,248.10..29,366.25 rows=47,261 width=24) (actual time=91.801..98.244 rows=32,769 loops=3)

  • Sort Key: meetings.id
  • Sort Method: quicksort Memory: 3104kB
8. 42.727 68.085 ↑ 1.4 32,769 3

Parallel Bitmap Heap Scan on meetings_108749 meetings (cost=2,322.61..25,578.67 rows=47,261 width=24) (actual time=25.545..68.085 rows=32,769 loops=3)

  • Recheck Cond: ((company_id = 2928) AND (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))
  • Heap Blocks: exact=6357
9. 25.358 25.358 ↑ 1.2 98,308 1

Bitmap Index Scan on temp_activity_report_index_108749 (cost=0.00..2,294.25 rows=113,426 width=0) (actual time=25.358..25.358 rows=98,308 loops=1)

  • Index Cond: ((company_id = 2928) AND (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))
10. 394.598 394.598 ↓ 1.6 438,087 3

Index Only Scan using entity_associations_source_to_target_107725 on entity_associations_107725 entity_associations (cost=0.56..231,638.15 rows=273,549 width=16) (actual time=0.061..394.598 rows=438,087 loops=3)

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