explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ILZd

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.477 6.297 ↓ 1.1 392 1

Nested Loop Left Join (cost=106.66..22,825.44 rows=368 width=345) (actual time=0.136..6.297 rows=392 loops=1)

2. 0.213 0.332 ↓ 1.1 392 1

Hash Left Join (cost=48.51..1,415.79 rows=368 width=111) (actual time=0.065..0.332 rows=392 loops=1)

  • Hash Cond: (wifiaeroscouttags.wat_mac = wifiaeroscouttagsassignmenthistory.watah_mac)
3. 0.071 0.090 ↓ 1.1 392 1

Bitmap Heap Scan on wifiaeroscouttags (cost=18.20..1,384.08 rows=368 width=7) (actual time=0.029..0.090 rows=392 loops=1)

  • Recheck Cond: (wat_active IS TRUE)
  • Heap Blocks: exact=12
4. 0.019 0.019 ↓ 1.1 392 1

Bitmap Index Scan on wat_active_mac_index (cost=0.00..18.11 rows=368 width=0) (actual time=0.019..0.019 rows=392 loops=1)

5. 0.002 0.029 ↑ 8.0 1 1

Hash (cost=30.21..30.21 rows=8 width=110) (actual time=0.029..0.029 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
6. 0.002 0.027 ↑ 8.0 1 1

Nested Loop (cost=14.57..30.21 rows=8 width=110) (actual time=0.026..0.027 rows=1 loops=1)

7. 0.008 0.019 ↑ 8.0 1 1

Hash Join (cost=14.42..26.95 rows=8 width=82) (actual time=0.018..0.019 rows=1 loops=1)

  • Hash Cond: (nodeslogical.nl_id = wifiaeroscouttagsassignmenthistory.watah_nl_id)
8. 0.004 0.004 ↑ 40.0 5 1

Seq Scan on nodeslogical (cost=0.00..12.00 rows=200 width=72) (actual time=0.004..0.004 rows=5 loops=1)

9. 0.003 0.007 ↑ 8.0 1 1

Hash (cost=14.32..14.32 rows=8 width=18) (actual time=0.007..0.007 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
10. 0.002 0.004 ↑ 8.0 1 1

Bitmap Heap Scan on wifiaeroscouttagsassignmenthistory (cost=4.19..14.32 rows=8 width=18) (actual time=0.004..0.004 rows=1 loops=1)

  • Recheck Cond: (watah_end IS NULL)
  • Heap Blocks: exact=1
11. 0.002 0.002 ↑ 8.0 1 1

Bitmap Index Scan on watah_unique_active_logical (cost=0.00..4.18 rows=8 width=0) (actual time=0.002..0.002 rows=1 loops=1)

12. 0.006 0.006 ↑ 1.0 1 1

Index Scan using entities_pkey on entities (cost=0.15..0.41 rows=1 width=36) (actual time=0.006..0.006 rows=1 loops=1)

  • Index Cond: (e_id = nodeslogical.nl_e_id)
13. 0.000 5.488 ↓ 0.0 0 392

Limit (cost=58.15..58.15 rows=1 width=185) (actual time=0.014..0.014 rows=0 loops=392)

14. 1.568 5.488 ↓ 0.0 0 392

Sort (cost=58.15..58.16 rows=7 width=185) (actual time=0.014..0.014 rows=0 loops=392)

  • Sort Key: wifiaeroscouttagspositionhistory.watph_from DESC
  • Sort Method: top-N heapsort Memory: 25kB
15. 1.145 3.920 ↓ 2.0 14 392

Hash Left Join (cost=34.53..58.11 rows=7 width=185) (actual time=0.003..0.010 rows=14 loops=392)

  • Hash Cond: (wifiaeroscouttagspositionhistory.watph_wap_basemac = wifiaccesspointsassignmenthistory.wapah_basemac)
16. 1.960 2.744 ↓ 2.0 14 392

Bitmap Heap Scan on wifiaeroscouttagspositionhistory (cost=4.34..27.89 rows=7 width=22) (actual time=0.003..0.007 rows=14 loops=392)

  • Recheck Cond: (watph_wat_mac = wifiaeroscouttags.wat_mac)
  • Filter: (watph_wap_basemac IS NOT NULL)
  • Rows Removed by Filter: 2
  • Heap Blocks: exact=1717
17. 0.784 0.784 ↓ 2.1 17 392

Bitmap Index Scan on watph_wat_mac_index (cost=0.00..4.34 rows=8 width=0) (actual time=0.002..0.002 rows=17 loops=392)

  • Index Cond: (watph_wat_mac = wifiaeroscouttags.wat_mac)
18. 0.002 0.031 ↑ 4.0 2 1

Hash (cost=30.08..30.08 rows=8 width=169) (actual time=0.030..0.031 rows=2 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.005 0.029 ↑ 4.0 2 1

Hash Left Join (cost=17.54..30.08 rows=8 width=169) (actual time=0.024..0.029 rows=2 loops=1)

  • Hash Cond: (wifiaccesspointsassignmenthistory.wapah_basemac = wifiaccesspoints.wap_basemac)
20. 0.007 0.017 ↑ 4.0 2 1

Hash Right Join (cost=14.42..26.95 rows=8 width=160) (actual time=0.012..0.017 rows=2 loops=1)

  • Hash Cond: (nodeslogical_1.nl_id = wifiaccesspointsassignmenthistory.wapah_nl_id)
21. 0.003 0.003 ↑ 40.0 5 1

Seq Scan on nodeslogical nodeslogical_1 (cost=0.00..12.00 rows=200 width=158) (actual time=0.001..0.003 rows=5 loops=1)

22. 0.003 0.007 ↑ 4.0 2 1

Hash (cost=14.32..14.32 rows=8 width=10) (actual time=0.005..0.007 rows=2 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
23. 0.002 0.004 ↑ 4.0 2 1

Bitmap Heap Scan on wifiaccesspointsassignmenthistory (cost=4.19..14.32 rows=8 width=10) (actual time=0.003..0.004 rows=2 loops=1)

  • Recheck Cond: (wapah_end IS NULL)
  • Heap Blocks: exact=1
24. 0.002 0.002 ↑ 4.0 2 1

Bitmap Index Scan on wapah_unique_active_logical (cost=0.00..4.18 rows=8 width=0) (actual time=0.001..0.002 rows=2 loops=1)

25. 0.002 0.007 ↑ 1.0 5 1

Hash (cost=3.05..3.05 rows=5 width=15) (actual time=0.007..0.007 rows=5 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.005 0.005 ↑ 1.0 5 1

Seq Scan on wifiaccesspoints (cost=0.00..3.05 rows=5 width=15) (actual time=0.002..0.005 rows=5 loops=1)