explain.depesz.com

PostgreSQL's explain analyze made readable

Result: io3y

Settings
# exclusive inclusive rows x rows loops node
1. 350.821 10,905.162 ↑ 1.6 390,912 1

Sort (cost=2,188,371.06..2,189,981.33 rows=644,109 width=167) (actual time=10,849.907..10,905.162 rows=390,912 loops=1)

  • Sort Key: signal."timestamp
  • Sort Method: external sort Disk: 47040kB
2. 248.765 10,554.341 ↑ 1.6 390,912 1

GroupAggregate (cost=1,996,391.29..2,020,545.38 rows=644,109 width=167) (actual time=10,166.767..10,554.341 rows=390,912 loops=1)

  • Group Key: signal.signal_id, parameter.name, parameter.unit, source_type.name, source.name, source.serial, site.name, quality.method, quality.flag
3. 462.448 10,305.576 ↑ 1.6 390,912 1

Sort (cost=1,996,391.29..1,998,001.56 rows=644,109 width=167) (actual time=10,166.756..10,305.576 rows=390,912 loops=1)

  • Sort Key: signal.signal_id, parameter.name, parameter.unit, source_type.name, source.name, source.serial, site.name, quality.method, quality.flag
  • Sort Method: external merge Disk: 44592kB
4. 59.688 9,843.128 ↑ 1.6 390,912 1

Hash Left Join (cost=1,667,002.55..1,828,565.61 rows=644,109 width=167) (actual time=8,258.906..9,843.128 rows=390,912 loops=1)

  • Hash Cond: (signal_quality.quality_id = quality.quality_id)
5. 62.957 9,783.429 ↑ 1.6 390,912 1

Hash Left Join (cost=1,667,001.49..1,819,708.04 rows=644,109 width=107) (actual time=8,258.887..9,783.429 rows=390,912 loops=1)

  • Hash Cond: (signals_signal_quality_association.signal_quality_id = signal_quality.signal_quality_id)
6. 86.117 9,715.027 ↑ 1.6 390,912 1

Hash Left Join (cost=1,666,419.22..1,810,269.28 rows=644,109 width=107) (actual time=8,253.394..9,715.027 rows=390,912 loops=1)

  • Hash Cond: (signal.site_id = site.site_id)
7. 1,080.715 9,628.881 ↑ 1.6 390,912 1

Hash Right Join (cost=1,666,416.14..1,801,409.70 rows=644,109 width=95) (actual time=8,253.352..9,628.881 rows=390,912 loops=1)

  • Hash Cond: (signals_signal_quality_association.signal_id = signal.signal_id)
8. 393.184 393.184 ↑ 1.0 4,807,213 1

Seq Scan on signals_signal_quality_association (cost=0.00..69,538.13 rows=4,807,213 width=8) (actual time=0.023..393.184 rows=4,807,213 loops=1)

9. 112.590 8,154.982 ↑ 1.6 390,912 1

Hash (cost=1,648,928.78..1,648,928.78 rows=644,109 width=91) (actual time=8,154.982..8,154.982 rows=390,912 loops=1)

  • Buckets: 32768 Batches: 32 Memory Usage: 1713kB
10. 105.598 8,042.392 ↑ 1.6 390,912 1

Hash Right Join (cost=1,640,062.51..1,648,928.78 rows=644,109 width=91) (actual time=7,936.848..8,042.392 rows=390,912 loops=1)

  • Hash Cond: (signals_comments_association.signal_id = signal.signal_id)
11. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on signals_comments_association (cost=0.00..32.60 rows=2,260 width=8) (actual time=0.001..0.001 rows=0 loops=1)

12. 129.313 7,936.793 ↑ 1.6 390,912 1

Hash (cost=1,623,204.14..1,623,204.14 rows=644,109 width=87) (actual time=7,936.793..7,936.793 rows=390,912 loops=1)

  • Buckets: 32768 Batches: 32 Memory Usage: 1619kB
13. 90.198 7,807.480 ↑ 1.6 390,912 1

Hash Join (cost=443,010.22..1,623,204.14 rows=644,109 width=87) (actual time=2,424.367..7,807.480 rows=390,912 loops=1)

  • Hash Cond: (signal.parameter_id = parameter.parameter_id)
14. 1,717.068 7,717.260 ↑ 2.9 390,912 1

Hash Join (cost=443,008.72..1,612,479.70 rows=1,141,830 width=76) (actual time=2,424.338..7,717.260 rows=390,912 loops=1)

  • Hash Cond: (signal.source_id = source.source_id)
15. 3,592.165 6,000.162 ↑ 1.0 20,459,097 1

Bitmap Heap Scan on signal (cost=443,004.23..1,523,020.38 rows=20,552,943 width=32) (actual time=2,414.512..6,000.162 rows=20,459,097 loops=1)

  • Recheck Cond: (('2018-10-01 00:00:00'::timestamp without time zone <= "timestamp") AND ("timestamp" <= '2019-01-01 00:00:00'::timestamp without time zone))
  • Rows Removed by Index Recheck: 29277
  • Heap Blocks: exact=31134 lossy=184383
16. 2,407.997 2,407.997 ↑ 1.0 20,459,097 1

Bitmap Index Scan on ix_signal_timestamp (cost=0.00..437,866.00 rows=20,552,943 width=0) (actual time=2,407.997..2,407.997 rows=20,459,097 loops=1)

  • Index Cond: (('2018-10-01 00:00:00'::timestamp without time zone <= "timestamp") AND ("timestamp" <= '2019-01-01 00:00:00'::timestamp without time zone))
17. 0.001 0.030 ↑ 2.5 2 1

Hash (cost=4.43..4.43 rows=5 width=52) (actual time=0.030..0.030 rows=2 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
18. 0.015 0.029 ↑ 2.5 2 1

Hash Join (cost=1.24..4.43 rows=5 width=52) (actual time=0.020..0.029 rows=2 loops=1)

  • Hash Cond: (source.source_type_id = source_type.source_type_id)
19. 0.006 0.006 ↑ 1.0 83 1

Seq Scan on source (cost=0.00..2.83 rows=83 width=38) (actual time=0.002..0.006 rows=83 loops=1)

20. 0.001 0.008 ↑ 1.0 1 1

Hash (cost=1.23..1.23 rows=1 width=22) (actual time=0.008..0.008 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
21. 0.007 0.007 ↑ 1.0 1 1

Seq Scan on source_type (cost=0.00..1.23 rows=1 width=22) (actual time=0.006..0.007 rows=1 loops=1)

  • Filter: ((name)::text = 'Hach_Flo-Dar'::text)
  • Rows Removed by Filter: 18
22. 0.012 0.022 ↓ 2.1 46 1

Hash (cost=1.22..1.22 rows=22 width=19) (actual time=0.022..0.022 rows=46 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
23. 0.010 0.010 ↓ 2.1 46 1

Seq Scan on parameter (cost=0.00..1.22 rows=22 width=19) (actual time=0.004..0.010 rows=46 loops=1)

24. 0.012 0.029 ↑ 1.0 48 1

Hash (cost=2.48..2.48 rows=48 width=20) (actual time=0.029..0.029 rows=48 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
25. 0.017 0.017 ↑ 1.0 48 1

Seq Scan on site (cost=0.00..2.48 rows=48 width=20) (actual time=0.008..0.017 rows=48 loops=1)

26. 2.488 5.445 ↑ 1.0 20,145 1

Hash (cost=330.45..330.45 rows=20,145 width=8) (actual time=5.445..5.445 rows=20,145 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 1043kB
27. 2.957 2.957 ↑ 1.0 20,145 1

Seq Scan on signal_quality (cost=0.00..330.45 rows=20,145 width=8) (actual time=0.009..2.957 rows=20,145 loops=1)

28. 0.004 0.011 ↑ 1.0 3 1

Hash (cost=1.03..1.03 rows=3 width=68) (actual time=0.011..0.011 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.007 0.007 ↑ 1.0 3 1

Seq Scan on quality (cost=0.00..1.03 rows=3 width=68) (actual time=0.007..0.007 rows=3 loops=1)