explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lqbV

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 6,430.419 ↓ 0.0 0 1

Limit (cost=1,863,776.16..1,863,776.21 rows=21 width=28) (actual time=6,430.418..6,430.419 rows=0 loops=1)

2. 0.002 6,430.417 ↓ 0.0 0 1

Sort (cost=1,863,776.16..1,863,776.21 rows=21 width=28) (actual time=6,430.417..6,430.417 rows=0 loops=1)

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

Finalize GroupAggregate (cost=1,863,769.69..1,863,775.01 rows=21 width=28) (actual time=6,430.415..6,430.415 rows=0 loops=1)

  • Group Key: t1._fld32821rref
4. 53.134 6,445.377 ↓ 0.0 0 1

Gather Merge (cost=1,863,769.69..1,863,774.59 rows=42 width=28) (actual time=6,430.414..6,445.377 rows=0 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
5. 0.017 6,392.243 ↓ 0.0 0 3 / 3

Sort (cost=1,862,769.67..1,862,769.72 rows=21 width=28) (actual time=6,392.243..6,392.243 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 6,392.226 ↓ 0.0 0 3 / 3

Partial HashAggregate (cost=1,862,768.43..1,862,768.64 rows=21 width=28) (actual time=6,392.226..6,392.226 rows=0 loops=3)

  • Group Key: t1._fld32821rref
7. 463.104 6,392.223 ↓ 0.0 0 3 / 3

Hash Anti Join (cost=9.13..1,833,365.47 rows=5,880,592 width=28) (actual time=6,392.222..6,392.223 rows=0 loops=3)

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

Parallel Seq Scan on _accumrg32819 t1 (cost=0.00..1,759,068.20 rows=5,892,770 width=28) (actual time=2,540.849..5,929.032 rows=4,668,137 loops=3)

  • Filter: ((_fld1389 = '0'::numeric) AND (((_period >= '2015-01-01 00:00:00'::timestamp without time zone) 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.007 0.087 ↓ 25.0 25 3 / 3

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

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

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

  • Index Cond: ((_fld1389 = '0'::numeric) AND (_fld74572_type = '\\010'::bytea) AND (_fld74572_rtref = '\\000\\000\\000\\231'::bytea) AND (_fld74572_rrref = '\\214\\332\\000\\014)\\264\\362\\242\\021\\343\\272B\\301*\\010\\353'::bytea) AND (_fld74573 = false) AND (_fld74574_type = '\\010'::bytea) AND (_fld74574_rtref = '\\000\\000\\000\\327'::bytea) AND (_fld74575_type = '\\010'::bytea) AND (_fld74575_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74575_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74576_type = '\\010'::bytea) AND (_fld74576_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74576_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74577_type = '\\010'::bytea) AND (_fld74577_rtref = '\\000\\000\\202\\355'::bytea))
  • Filter: ((NOT _fld74573) AND (_fld74577_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea) AND (_fld74578_type = '\\010'::bytea) AND (_fld74578_rtref = '\\000\\000\\202\\355'::bytea) AND (_fld74578_rrref = '\\231\\230\\274W?@8\\327E\\353\\354\\004d\\357\\033\\\\'::bytea))