explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ypeK

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 126,817.414 ↓ 0.0 0 1

Limit (cost=1,863,764.07..1,863,764.12 rows=21 width=28) (actual time=126,817.414..126,817.414 rows=0 loops=1)

2. 0.015 126,817.413 ↓ 0.0 0 1

Sort (cost=1,863,764.07..1,863,764.12 rows=21 width=28) (actual time=126,817.413..126,817.413 rows=0 loops=1)

  • Sort Key: (max(t1._period)) DESC, t1._fld32821rref
  • Sort Method: quicksort Memory: 25kB
3. 0.000 126,817.398 ↓ 0.0 0 1

Finalize GroupAggregate (cost=1,863,757.60..1,863,762.92 rows=21 width=28) (actual time=126,817.398..126,817.398 rows=0 loops=1)

  • Group Key: t1._fld32821rref
4. 161.105 126,832.737 ↓ 0.0 0 1

Gather Merge (cost=1,863,757.60..1,863,762.50 rows=42 width=28) (actual time=126,817.395..126,832.737 rows=0 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
5. 0.028 126,671.632 ↓ 0.0 0 3 / 3

Sort (cost=1,862,757.57..1,862,757.62 rows=21 width=28) (actual time=126,671.631..126,671.632 rows=0 loops=3)

  • Sort Key: t1._fld32821rref
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
6. 0.003 126,671.604 ↓ 0.0 0 3 / 3

Partial HashAggregate (cost=1,862,756.34..1,862,756.55 rows=21 width=28) (actual time=126,671.604..126,671.604 rows=0 loops=3)

  • Group Key: t1._fld32821rref
7. 698.110 126,671.601 ↓ 0.0 0 3 / 3

Hash Anti Join (cost=9.13..1,833,356.81 rows=5,879,906 width=28) (actual time=126,671.599..126,671.601 rows=0 loops=3)

  • Hash Cond: (t1._fld32821rref = t2._fld74574_rrref)
8. 125,863.176 125,863.176 ↑ 1.3 4,668,137 3 / 3

Parallel Seq Scan on _accumrg32819 t1 (cost=0.00..1,759,068.20 rows=5,892,083 width=28) (actual time=57,471.055..125,863.176 rows=4,668,137 loops=3)

  • Filter: ((_period >= '2015-01-01 00:00:00'::timestamp without time zone) AND (_fld1389 = '0'::numeric) AND ((_period < '2015-12-31 17:05:45'::timestamp without time zone) OR (_period = '2015-12-31 17:05:45'::timestamp without time zone)))
  • Rows Removed by Filter: 3609831
9. 0.021 110.315 ↓ 25.0 25 3 / 3

Hash (cost=9.12..9.12 rows=1 width=17) (actual time=110.315..110.315 rows=25 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
10. 110.294 110.294 ↓ 25.0 25 3 / 3

Index Scan using _inforg74571_1 on _inforg74571 t2 (cost=0.55..9.12 rows=1 width=17) (actual time=64.665..110.294 rows=25 loops=3)

  • Index Cond: ((_fld1389 = '0'::numeric) AND (_fld74572_type = '\\x08'::bytea) AND (_fld74572_rtref = '\\x00000099'::bytea) AND (_fld74572_rrref = '\\x8cda000c29b4f2a211e3ba42c12a08eb'::bytea) AND (_fld74573 = false) AND (_fld74574_type = '\\x08'::bytea) AND (_fld74574_rtref = '\\x000000d7'::bytea) AND (_fld74575_type = '\\x08'::bytea) AND (_fld74575_rtref = '\\x000082ed'::bytea) AND (_fld74575_rrref = '\\x9998bc573f4038d745ebec0464ef1b5c'::bytea) AND (_fld74576_type = '\\x08'::bytea) AND (_fld74576_rtref = '\\x000082ed'::bytea) AND (_fld74576_rrref = '\\x9998bc573f4038d745ebec0464ef1b5c'::bytea) AND (_fld74577_type = '\\x08'::bytea) AND (_fld74577_rtref = '\\x000082ed'::bytea))
  • Filter: ((NOT _fld74573) AND (_fld74577_rrref = '\\x9998bc573f4038d745ebec0464ef1b5c'::bytea) AND (_fld74578_type = '\\x08'::bytea) AND (_fld74578_rtref = '\\x000082ed'::bytea) AND (_fld74578_rrref = '\\x9998bc573f4038d745ebec0464ef1b5c'::bytea))
Planning time : 399.938 ms
Execution time : 126,834.839 ms