explain.depesz.com

PostgreSQL's explain analyze made readable

Result: T4pk

Settings
# exclusive inclusive rows x rows loops node
1. 18.296 5,555.128 ↑ 2.1 12,136 1

Sort (cost=2,706,944.50..2,707,006.92 rows=24,969 width=762) (actual time=5,553.553..5,555.128 rows=12,136 loops=1)

  • Sort Key: rd.dt_inicio_terminal
  • Sort Method: quicksort Memory: 4,320kB
2. 4,434.250 5,536.832 ↑ 2.1 12,136 1

GroupAggregate (cost=134,875.03..2,705,120.78 rows=24,969 width=762) (actual time=634.733..5,536.832 rows=12,136 loops=1)

  • Group Key: mc.nm_modelo, ve.cd_identificador, rd.id_rd, tb_sos.qtd_sos, tb_sos.tempo_total_sos, tb_refeicao.qtd_refeicao, tb_refeicao.tempo_total_refeicao
3. 112.601 635.471 ↓ 1.5 38,617 1

Sort (cost=134,875.03..134,937.45 rows=24,969 width=617) (actual time=626.786..635.471 rows=38,617 loops=1)

  • Sort Key: mc.nm_modelo, ve.cd_identificador, rd.id_rd, tb_sos.qtd_sos, tb_sos.tempo_total_sos, tb_refeicao.qtd_refeicao, tb_refeicao.tempo_total_refeicao
  • Sort Method: quicksort Memory: 26,764kB
4. 2.392 522.870 ↓ 1.5 38,617 1

Nested Loop (cost=89,580.41..133,051.31 rows=24,969 width=617) (actual time=345.774..522.870 rows=38,617 loops=1)

5. 14.678 412.928 ↓ 1.5 17,925 1

Nested Loop (cost=89,579.98..119,459.20 rows=12,075 width=564) (actual time=345.733..412.928 rows=17,925 loops=1)

6. 3.852 373.978 ↓ 1.3 12,136 1

Hash Left Join (cost=89,579.55..96,276.51 rows=9,039 width=558) (actual time=345.709..373.978 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_refeicao.id_rd)::integer)
7. 2.805 280.842 ↓ 1.3 12,136 1

Hash Left Join (cost=52,414.96..59,088.20 rows=9,039 width=534) (actual time=256.411..280.842 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_sos.id_rd)::integer)
8. 3.500 24.720 ↓ 1.3 12,136 1

Hash Join (cost=424.31..7,073.82 rows=9,039 width=494) (actual time=3.073..24.720 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_veiculo)::integer = (ve.id_veiculo)::integer)
9. 2.860 18.287 ↓ 1.3 12,136 1

Hash Join (cost=2.00..6,627.77 rows=9,039 width=488) (actual time=0.063..18.287 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_modelo_coleta)::integer = (mc.id_modelo_coleta)::integer)
10. 15.413 15.413 ↓ 1.3 12,136 1

Index Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd (cost=0.43..6,598.45 rows=9,039 width=472) (actual time=0.036..15.413 rows=12,136 loops=1)

  • Index Cond: (((id_filial)::integer = 55) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
11. 0.008 0.014 ↑ 1.0 25 1

Hash (cost=1.25..1.25 rows=25 width=24) (actual time=0.013..0.014 rows=25 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
12. 0.006 0.006 ↑ 1.0 25 1

Seq Scan on tb_modelo_coleta mc (cost=0.00..1.25 rows=25 width=24) (actual time=0.003..0.006 rows=25 loops=1)

13. 1.561 2.933 ↑ 1.0 10,325 1

Hash (cost=293.25..293.25 rows=10,325 width=14) (actual time=2.933..2.933 rows=10,325 loops=1)

  • Buckets: 16,384 Batches: 1 Memory Usage: 620kB
14. 1.372 1.372 ↑ 1.0 10,325 1

Seq Scan on tb_veiculo ve (cost=0.00..293.25 rows=10,325 width=14) (actual time=0.004..1.372 rows=10,325 loops=1)

15. 0.025 253.317 ↓ 2.3 97 1

Hash (cost=51,990.13..51,990.13 rows=42 width=44) (actual time=253.317..253.317 rows=97 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 14kB
16. 0.011 253.292 ↓ 2.3 97 1

Subquery Scan on tb_sos (cost=51,988.66..51,990.13 rows=42 width=44) (actual time=253.193..253.292 rows=97 loops=1)

17. 0.478 253.281 ↓ 2.3 97 1

GroupAggregate (cost=51,988.66..51,989.71 rows=42 width=44) (actual time=253.191..253.281 rows=97 loops=1)

  • Group Key: rd_1.id_rd
18. 0.069 252.803 ↓ 2.8 117 1

Sort (cost=51,988.66..51,988.76 rows=42 width=20) (actual time=252.796..252.803 rows=117 loops=1)

  • Sort Key: rd_1.id_rd
  • Sort Method: quicksort Memory: 34kB
19. 0.133 252.734 ↓ 2.8 117 1

Nested Loop (cost=2.00..51,987.53 rows=42 width=20) (actual time=0.490..252.734 rows=117 loops=1)

20. 35.563 252.367 ↓ 2.8 117 1

Nested Loop (cost=1.72..51,974.56 rows=42 width=24) (actual time=0.474..252.367 rows=117 loops=1)

  • Join Filter: ((o.id_modelo_ocorrencia)::integer = (mo.id_modelo_ocorrencia)::integer)
  • Rows Removed by Join Filter: 285,309
21. 7.303 216.804 ↓ 343.8 35,755 1

Nested Loop (cost=1.72..51,961.28 rows=104 width=28) (actual time=0.271..216.804 rows=35,755 loops=1)

22. 4.217 132.267 ↓ 1.5 38,617 1

Nested Loop (cost=1.29..37,039.86 rows=24,969 width=12) (actual time=0.078..132.267 rows=38,617 loops=1)

23. 11.845 38.425 ↓ 1.5 17,925 1

Nested Loop (cost=0.86..23,447.76 rows=12,075 width=12) (actual time=0.055..38.425 rows=17,925 loops=1)

24. 2.308 2.308 ↓ 1.3 12,136 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_1 (cost=0.43..265.07 rows=9,039 width=8) (actual time=0.036..2.308 rows=12,136 loops=1)

  • Index Cond: ((id_filial = 55) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 198
25. 24.272 24.272 ↑ 2.0 1 12,136

Index Scan using ix01f_tb_viagem on tb_viagem v1 (cost=0.43..2.54 rows=2 width=8) (actual time=0.002..0.002 rows=1 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd_1.id_rd)::integer)
26. 35.850 89.625 ↑ 3.5 2 17,925

Append (cost=0.43..1.06 rows=7 width=8) (actual time=0.002..0.005 rows=2 loops=17,925)

27. 35.850 35.850 ↑ 1.5 2 17,925

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv1 (cost=0.43..0.48 rows=3 width=8) (actual time=0.002..0.002 rows=2 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v1.id_viagem)::integer)
28. 17.925 17.925 ↓ 0.0 0 17,925

Index Scan using ix01f_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv1_1 (cost=0.43..0.54 rows=4 width=8) (actual time=0.001..0.001 rows=0 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v1.id_viagem)::integer)
29. 77.234 77.234 ↑ 1.0 1 38,617

Index Scan using ix02f_tb_ocorrencia on tb_ocorrencia o (cost=0.43..0.59 rows=1 width=24) (actual time=0.001..0.002 rows=1 loops=38,617)

  • Index Cond: ((id_trecho_viagem)::integer = (tv1.id_trecho_viagem)::integer)
  • Filter: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Rows Removed by Filter: 0
30. 0.000 0.000 ↑ 1.0 8 35,755

Materialize (cost=0.00..1.29 rows=8 width=4) (actual time=0.000..0.000 rows=8 loops=35,755)

31. 0.005 0.005 ↑ 1.0 8 1

Seq Scan on tb_modelo_ocorrencia mo (cost=0.00..1.25 rows=8 width=4) (actual time=0.003..0.005 rows=8 loops=1)

  • Filter: ((tp_ocorrencia)::smallint = 0)
  • Rows Removed by Filter: 12
32. 0.234 0.234 ↑ 1.0 1 117

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_1 (cost=0.29..0.31 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=117)

  • Index Cond: (id_veiculo = (rd_1.id_veiculo)::integer)
  • Heap Fetches: 23
33. 0.335 89.284 ↓ 318.4 1,592 1

Hash (cost=37,164.52..37,164.52 rows=5 width=28) (actual time=89.284..89.284 rows=1,592 loops=1)

  • Buckets: 2,048 (originally 1024) Batches: 1 (originally 1) Memory Usage: 110kB
34. 0.171 88.949 ↓ 318.4 1,592 1

Subquery Scan on tb_refeicao (cost=37,164.36..37,164.52 rows=5 width=28) (actual time=87.986..88.949 rows=1,592 loops=1)

35. 0.680 88.778 ↓ 318.4 1,592 1

GroupAggregate (cost=37,164.36..37,164.47 rows=5 width=28) (actual time=87.985..88.778 rows=1,592 loops=1)

  • Group Key: rd_2.id_rd
36. 0.720 88.098 ↓ 323.8 1,619 1

Sort (cost=37,164.36..37,164.37 rows=5 width=20) (actual time=87.974..88.098 rows=1,619 loops=1)

  • Sort Key: rd_2.id_rd
  • Sort Method: quicksort Memory: 175kB
37. 1.963 87.378 ↓ 323.8 1,619 1

Nested Loop (cost=401.37..37,164.30 rows=5 width=20) (actual time=11.741..87.378 rows=1,619 loops=1)

38. 1.851 83.796 ↓ 323.8 1,619 1

Hash Join (cost=401.08..37,162.76 rows=5 width=24) (actual time=11.723..83.796 rows=1,619 loops=1)

  • Hash Cond: ((v1_1.id_rd)::integer = (rd_2.id_rd)::integer)
39. 7.730 78.371 ↓ 2.1 6,027 1

Nested Loop (cost=23.03..36,776.99 rows=2,939 width=20) (actual time=7.463..78.371 rows=6,027 loops=1)

40. 4.189 58.587 ↓ 2.1 6,027 1

Nested Loop (cost=22.59..35,436.44 rows=2,939 width=20) (actual time=7.441..58.587 rows=6,027 loops=1)

41. 5.133 24.263 ↓ 2.1 6,027 1

Hash Join (cost=22.17..26,582.93 rows=2,939 width=20) (actual time=7.423..24.263 rows=6,027 loops=1)

  • Hash Cond: ((o_1.id_modelo_ocorrencia)::integer = (mo_1.id_modelo_ocorrencia)::integer)
42. 18.907 19.117 ↑ 1.1 55,752 1

Bitmap Heap Scan on tb_ocorrencia o_1 (cost=20.90..26,394.66 rows=58,785 width=24) (actual time=6.755..19.117 rows=55,752 loops=1)

  • Recheck Cond: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Rows Removed by Index Recheck: 84,755
  • Heap Blocks: lossy=2,001
43. 0.210 0.210 ↑ 2.9 20,160 1

Bitmap Index Scan on ind_tb_ocorrencia_dtinicio (cost=0.00..6.21 rows=58,984 width=0) (actual time=0.210..0.210 rows=20,160 loops=1)

  • Index Cond: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
44. 0.005 0.013 ↑ 1.0 1 1

Hash (cost=1.25..1.25 rows=1 width=4) (actual time=0.013..0.013 rows=1 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
45. 0.008 0.008 ↑ 1.0 1 1

Seq Scan on tb_modelo_ocorrencia mo_1 (cost=0.00..1.25 rows=1 width=4) (actual time=0.006..0.008 rows=1 loops=1)

  • Filter: ((tp_ocorrencia)::smallint = 2)
  • Rows Removed by Filter: 19
46. 6.027 30.135 ↑ 2.0 1 6,027

Append (cost=0.43..2.99 rows=2 width=8) (actual time=0.003..0.005 rows=1 loops=6,027)

47. 18.081 18.081 ↑ 1.0 1 6,027

Index Scan using pk00_tb_trecho_viagem on tb_trecho_viagem tv1_2 (cost=0.43..0.89 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=6,027)

  • Index Cond: ((id_trecho_viagem)::integer = (o_1.id_trecho_viagem)::integer)
48. 6.027 6.027 ↓ 0.0 0 6,027

Index Scan using pk00_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv1_3 (cost=0.43..2.10 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=6,027)

  • Index Cond: ((id_trecho_viagem)::integer = (o_1.id_trecho_viagem)::integer)
49. 12.054 12.054 ↑ 1.0 1 6,027

Index Scan using pk00_tb_viagem on tb_viagem v1_1 (cost=0.43..0.46 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=6,027)

  • Index Cond: ((id_viagem)::integer = (tv1_2.id_viagem)::integer)
50. 1.559 3.574 ↓ 1.3 12,136 1

Hash (cost=265.07..265.07 rows=9,039 width=8) (actual time=3.574..3.574 rows=12,136 loops=1)

  • Buckets: 16,384 Batches: 1 Memory Usage: 603kB
51. 2.015 2.015 ↓ 1.3 12,136 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_2 (cost=0.43..265.07 rows=9,039 width=8) (actual time=0.042..2.015 rows=12,136 loops=1)

  • Index Cond: ((id_filial = 55) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 198
52. 1.619 1.619 ↑ 1.0 1 1,619

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_2 (cost=0.29..0.31 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=1,619)

  • Index Cond: (id_veiculo = (rd_2.id_veiculo)::integer)
  • Heap Fetches: 274
53. 24.272 24.272 ↑ 2.0 1 12,136

Index Scan using ix01f_tb_viagem on tb_viagem v (cost=0.43..2.54 rows=2 width=10) (actual time=0.002..0.002 rows=1 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
54. 35.850 107.550 ↑ 3.5 2 17,925

Append (cost=0.43..1.06 rows=7 width=61) (actual time=0.003..0.006 rows=2 loops=17,925)

55. 53.775 53.775 ↑ 1.5 2 17,925

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv (cost=0.43..0.48 rows=3 width=116) (actual time=0.002..0.003 rows=2 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v.id_viagem)::integer)
56. 17.925 17.925 ↓ 0.0 0 17,925

Index Scan using ix01f_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv_1 (cost=0.43..0.54 rows=4 width=54) (actual time=0.001..0.001 rows=0 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v.id_viagem)::integer)
57.          

SubPlan (for GroupAggregate)

58. 0.000 109.224 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.009..0.009 rows=0 loops=12,136)

59. 24.272 109.224 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.009..0.009 rows=0 loops=12,136)

  • Sort Key: eq.dt_inicio
  • Sort Method: quicksort Memory: 25kB
60. 4.982 84.952 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.007..0.007 rows=0 loops=12,136)

61. 14.946 72.816 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.006..0.006 rows=0 loops=12,136)

62. 36.408 36.408 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq (cost=0.43..2.88 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
63. 21.462 21.462 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1 (cost=0.43..3.94 rows=1 width=8) (actual time=0.005..0.006 rows=1 loops=3,577)

  • Index Cond: ((eq.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 1)
  • Rows Removed by Filter: 2
64. 7.154 7.154 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.002..0.002 rows=1 loops=3,577)

  • Index Cond: ((ec1.id_coletor)::integer = (id_coletor)::integer)
65. 12.136 72.816 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.006..0.006 rows=0 loops=12,136)

66. 0.000 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_1.dt_inicio
  • Sort Method: quicksort Memory: 25kB
67. 20.695 60.680 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.004..0.005 rows=0 loops=12,136)

68. 4.982 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

69. 24.272 24.272 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_1 (cost=0.43..2.88 rows=3 width=12) (actual time=0.002..0.002 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
70. 7.154 7.154 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_1 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=3,577)

  • Index Cond: ((eq_1.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 2)
  • Rows Removed by Filter: 2
71. 3.577 3.577 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=1 loops=3,577)

  • Index Cond: ((ec1_1.id_coletor)::integer = (id_coletor)::integer)
72. 0.000 60.680 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

73. 12.136 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_2.dt_inicio
  • Sort Method: quicksort Memory: 25kB
74. 8.559 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

75. 17.118 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

76. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_2 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
77. 7.154 7.154 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_2 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=3,577)

  • Index Cond: ((eq_2.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 3)
  • Rows Removed by Filter: 2
78. 3.577 3.577 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_2 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=1 loops=3,577)

  • Index Cond: ((ec1_2.id_coletor)::integer = (id_coletor)::integer)
79. 0.000 60.680 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

80. 12.136 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_3.dt_inicio
  • Sort Method: quicksort Memory: 25kB
81. 8.559 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

82. 17.118 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

83. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_3 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
84. 7.154 7.154 ↓ 0.0 0 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_3 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=3,577)

  • Index Cond: ((eq_3.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 4)
  • Rows Removed by Filter: 2
85. 3.577 3.577 ↓ 0.0 0 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_3 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=0 loops=3,577)

  • Index Cond: ((ec1_3.id_coletor)::integer = (id_coletor)::integer)
86. 12.136 60.680 ↓ 0.0 0 12,136

Limit (cost=15.67..15.68 rows=1 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

87. 0.000 48.544 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

  • Sort Key: eq_4.dt_inicio
  • Sort Method: quicksort Memory: 25kB
88. 12.136 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.66 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

89. 17.118 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

90. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_4 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
91. 7.154 7.154 ↓ 0.0 0 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_4 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=3,577)

  • Index Cond: ((eq_4.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 5)
  • Rows Removed by Filter: 3
92. 0.000 0.000 ↓ 0.0 0 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_4 (cost=0.29..0.31 rows=1 width=28) (actual time=0.000..0.000 rows=0 loops=3,577)

  • Index Cond: ((ec1_4.id_coletor)::integer = (id_coletor)::integer)
93. 12.136 24.272 ↓ 0.0 0 12,136

Limit (cost=0.43..2.88 rows=1 width=1) (actual time=0.002..0.002 rows=0 loops=12,136)

94. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_5 (cost=0.43..2.88 rows=1 width=1) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
  • Filter: (NOT vf_inicial)
  • Rows Removed by Filter: 0
95. 12.136 36.408 ↓ 0.0 0 12,136

Limit (cost=0.42..2.84 rows=1 width=5) (actual time=0.003..0.003 rows=0 loops=12,136)

96. 24.272 24.272 ↓ 0.0 0 12,136

Index Scan using ix00f_tb_abastecimento on tb_abastecimento (cost=0.42..2.84 rows=1 width=5) (actual time=0.002..0.002 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
97. 12.136 24.272 ↓ 0.0 0 12,136

Limit (cost=0.42..2.84 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=12,136)

98. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix00f_tb_abastecimento on tb_abastecimento tb_abastecimento_1 (cost=0.42..2.84 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
99. 0.069 0.069 ↑ 1.0 1 23

Index Scan using pk00_tb_geometria on tb_geometria g_4 (cost=0.43..2.85 rows=1 width=43) (actual time=0.003..0.003 rows=1 loops=23)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
100. 0.450 0.450 ↑ 1.0 1 150

Index Scan using pk00_tb_geometria on tb_geometria g_3 (cost=0.43..2.85 rows=1 width=43) (actual time=0.002..0.003 rows=1 loops=150)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
101. 1.842 1.842 ↑ 1.0 1 921

Index Scan using pk00_tb_geometria on tb_geometria g_2 (cost=0.43..2.85 rows=1 width=43) (actual time=0.002..0.002 rows=1 loops=921)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
102. 6.516 6.516 ↑ 1.0 1 2,172

Index Scan using pk00_tb_geometria on tb_geometria g_1 (cost=0.43..2.85 rows=1 width=43) (actual time=0.002..0.003 rows=1 loops=2,172)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
103. 9.202 9.202 ↑ 1.0 1 4,601

Index Scan using pk00_tb_geometria on tb_geometria g (cost=0.43..2.85 rows=1 width=43) (actual time=0.002..0.002 rows=1 loops=4,601)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
Planning time : 46.897 ms
Execution time : 5,564.821 ms