explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WMeL : old approach

Settings
# exclusive inclusive rows x rows loops node
1. 0.004 0.419 ↑ 3.8 13 1

Limit (cost=0.00..186.80 rows=50 width=813) (actual time=0.049..0.419 rows=13 loops=1)

2. 0.005 0.415 ↑ 3.9 13 1

Append (cost=0.00..190.54 rows=51 width=813) (actual time=0.047..0.415 rows=13 loops=1)

3. 0.007 0.007 ↓ 0.0 0 1

Seq Scan on video (cost=0.00..0.00 rows=1 width=272) (actual time=0.007..0.007 rows=0 loops=1)

  • Filter: ((inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone) AND (fim >= '2018-06-20 18:15:00'::timestamp without time zone) AND (veiculo_id = 51519))
4. 0.019 0.019 ↓ 0.0 0 1

Index Scan using idx_2018_05_video_veiculo_inicio on video video_1 (cost=0.15..8.17 rows=1 width=272) (actual time=0.019..0.019 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
5. 0.112 0.112 ↑ 2.2 13 1

Seq Scan on video video_2 (cost=0.00..21.08 rows=28 width=911) (actual time=0.020..0.112 rows=13 loops=1)

  • Filter: ((inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone) AND (fim >= '2018-06-20 18:15:00'::timestamp without time zone) AND (veiculo_id = 51519))
  • Rows Removed by Filter: 141
6. 0.022 0.022 ↓ 0.0 0 1

Index Scan using idx_2018_07_video_veiculo_inicio on video video_3 (cost=0.14..8.17 rows=1 width=927) (actual time=0.022..0.022 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
7. 0.013 0.013 ↓ 0.0 0 1

Index Scan using idx_2018_08_video_veiculo_inicio on video video_4 (cost=0.28..8.30 rows=1 width=902) (actual time=0.013..0.013 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
8. 0.020 0.020 ↓ 0.0 0 1

Index Scan using idx_2018_09_video_veiculo_inicio on video video_5 (cost=0.28..8.30 rows=1 width=908) (actual time=0.020..0.020 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
9. 0.012 0.012 ↓ 0.0 0 1

Index Scan using idx_2018_10_video_veiculo_inicio on video video_6 (cost=0.28..8.30 rows=1 width=800) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
10. 0.015 0.015 ↓ 0.0 0 1

Index Scan using idx_2018_11_video_veiculo_inicio on video video_7 (cost=0.27..8.30 rows=1 width=779) (actual time=0.014..0.015 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
11. 0.011 0.011 ↓ 0.0 0 1

Index Scan using idx_2018_12_video_veiculo_inicio on video video_8 (cost=0.14..8.17 rows=1 width=783) (actual time=0.011..0.011 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
12. 0.010 0.010 ↓ 0.0 0 1

Index Scan using idx_2019_01_video_veiculo_inicio on video video_9 (cost=0.14..8.17 rows=1 width=721) (actual time=0.010..0.010 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
13. 0.013 0.013 ↓ 0.0 0 1

Index Scan using idx_2019_02_video_veiculo_inicio on video video_10 (cost=0.14..6.89 rows=1 width=612) (actual time=0.013..0.013 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
14. 0.012 0.012 ↓ 0.0 0 1

Index Scan using idx_2019_03_video_veiculo_inicio on video video_11 (cost=0.27..8.30 rows=1 width=623) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
15. 0.013 0.013 ↓ 0.0 0 1

Index Scan using idx_2019_04_video_veiculo_inicio on video video_12 (cost=0.14..8.17 rows=1 width=787) (actual time=0.013..0.013 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
16. 0.010 0.010 ↓ 0.0 0 1

Index Scan using idx_2019_05_video_veiculo_inicio on video video_13 (cost=0.14..6.14 rows=1 width=859) (actual time=0.010..0.010 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
17. 0.011 0.011 ↓ 0.0 0 1

Index Scan using idx_2019_06_video_veiculo_inicio on video video_14 (cost=0.27..8.30 rows=1 width=770) (actual time=0.011..0.011 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
18. 0.012 0.012 ↓ 0.0 0 1

Index Scan using idx_2019_07_video_veiculo_inicio on video video_15 (cost=0.27..8.30 rows=1 width=702) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
19. 0.012 0.012 ↓ 0.0 0 1

Index Scan using idx_2019_08_video_veiculo_inicio on video video_16 (cost=0.28..8.31 rows=1 width=527) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
20. 0.020 0.020 ↓ 0.0 0 1

Index Scan using idx_2019_09_video_veiculo_inicio on video video_17 (cost=0.28..6.91 rows=1 width=928) (actual time=0.020..0.020 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
21. 0.011 0.011 ↓ 0.0 0 1

Index Scan using idx_2019_10_video_veiculo_inicio on video video_18 (cost=0.28..8.18 rows=1 width=817) (actual time=0.011..0.011 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
22. 0.014 0.014 ↓ 0.0 0 1

Index Scan using idx_2019_11_video_veiculo_inicio on video video_19 (cost=0.27..8.30 rows=1 width=846) (actual time=0.014..0.014 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
23. 0.011 0.011 ↓ 0.0 0 1

Index Scan using idx_2019_12_video_veiculo_inicio on video video_20 (cost=0.28..8.30 rows=1 width=731) (actual time=0.010..0.011 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
24. 0.010 0.010 ↓ 0.0 0 1

Index Scan using idx_2020_01_video_veiculo_inicio on video video_21 (cost=0.28..8.20 rows=1 width=841) (actual time=0.010..0.010 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
25. 0.013 0.013 ↓ 0.0 0 1

Index Scan using idx_2020_02_video_veiculo_inicio on video video_22 (cost=0.15..8.17 rows=1 width=272) (actual time=0.012..0.013 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
26. 0.007 0.007 ↓ 0.0 0 1

Seq Scan on video_fallback (cost=0.00..1.12 rows=1 width=272) (actual time=0.007..0.007 rows=0 loops=1)

  • Filter: ((inicio >= '2018-06-18 18:15:00'::timestamp without time zone) AND (inicio <= '2018-06-22 18:16:00'::timestamp without time zone) AND (fim >= '2018-06-20 18:15:00'::timestamp without time zone) AND (veiculo_id = 51519))
  • Rows Removed by Filter: 6
Planning time : 6.514 ms
Execution time : 0.920 ms