explain.depesz.com

PostgreSQL's explain analyze made readable

Result: l11t : current approach

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 0.263 ↑ 34.0 1 1

Limit (cost=0.00..190.09 rows=34 width=764) (actual time=0.028..0.263 rows=1 loops=1)

2. 0.003 0.261 ↑ 34.0 1 1

Append (cost=0.00..190.09 rows=34 width=764) (actual time=0.027..0.261 rows=1 loops=1)

3. 0.004 0.004 ↓ 0.0 0 1

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

  • Filter: ((inicio <= '2018-06-20 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.009 0.009 ↓ 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.009..0.009 rows=0 loops=1)

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

Seq Scan on video video_2 (cost=0.00..20.70 rows=11 width=911) (actual time=0.013..0.055 rows=1 loops=1)

  • Filter: ((inicio <= '2018-06-20 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: 153
6. 0.013 0.013 ↓ 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.013..0.013 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
7. 0.009 0.009 ↓ 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.009..0.009 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
8. 0.015 0.015 ↓ 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.015..0.015 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
9. 0.010 0.010 ↓ 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.010..0.010 rows=0 loops=1)

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

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

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
11. 0.007 0.007 ↓ 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.007..0.007 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
12. 0.009 0.009 ↓ 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.009..0.009 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
13. 0.009 0.009 ↓ 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.009..0.009 rows=0 loops=1)

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

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

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
15. 0.006 0.006 ↓ 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.006..0.006 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
16. 0.007 0.007 ↓ 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.007..0.007 rows=0 loops=1)

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

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

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

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

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

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

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

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

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
21. 0.007 0.007 ↓ 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.007..0.007 rows=0 loops=1)

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

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

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
23. 0.009 0.009 ↓ 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.009..0.009 rows=0 loops=1)

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

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

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 18:16:00'::timestamp without time zone))
  • Filter: (fim >= '2018-06-20 18:15:00'::timestamp without time zone)
25. 0.014 0.014 ↓ 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.014..0.014 rows=0 loops=1)

  • Index Cond: ((veiculo_id = 51519) AND (inicio <= '2018-06-20 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.10 rows=1 width=272) (actual time=0.007..0.007 rows=0 loops=1)

  • Filter: ((inicio <= '2018-06-20 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 : 2.888 ms
Execution time : 0.504 ms