explain.depesz.com

PostgreSQL's explain analyze made readable

Result: zSnO

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 10,893.578 ↑ 1.0 50 1

Limit (cost=1,126,863.94..1,166,184.87 rows=50 width=582) (actual time=10,893.482..10,893.578 rows=50 loops=1)

2. 0.020 10,893.575 ↑ 4.0 50 1

Unique (cost=1,126,863.94..1,284,147.67 rows=200 width=582) (actual time=10,893.481..10,893.575 rows=50 loops=1)

3. 0.034 10,893.555 ↑ 17,018.2 50 1

Nested Loop Left Join (cost=1,126,863.94..1,282,020.39 rows=850,911 width=582) (actual time=10,893.479..10,893.555 rows=50 loops=1)

4. 0.025 10,893.521 ↑ 17,018.2 50 1

Merge Left Join (cost=1,126,863.80..1,145,898.44 rows=850,911 width=463) (actual time=10,893.472..10,893.521 rows=50 loops=1)

  • Merge Cond: ("*SELECT* 1".codigo = crpg.contasareceber_faturamentos_cr_codigo)
5. 658.325 10,706.409 ↑ 17,018.2 50 1

Sort (cost=1,015,923.39..1,018,050.66 rows=850,911 width=455) (actual time=10,706.386..10,706.409 rows=50 loops=1)

  • Sort Key: "*SELECT* 1".codigo
  • Sort Method: external merge Disk: 117288kB
6. 245.608 10,048.084 ↑ 1.0 820,010 1

Hash Left Join (cost=152,594.85..583,101.40 rows=850,911 width=455) (actual time=974.389..10,048.084 rows=820,010 loops=1)

  • Hash Cond: ("*SELECT* 1".vendedores_codigo = v.codigo)
7. 65.698 9,802.448 ↑ 1.0 820,010 1

Append (cost=152,591.98..580,817.55 rows=850,911 width=446) (actual time=974.358..9,802.448 rows=820,010 loops=1)

8. 155.571 9,731.918 ↑ 1.0 820,000 1

Subquery Scan on *SELECT* 1 (cost=152,591.98..522,320.27 rows=820,000 width=446) (actual time=974.357..9,731.918 rows=820,000 loops=1)

9. 5,178.192 9,576.347 ↑ 1.0 820,000 1

Hash Left Join (cost=152,591.98..514,120.27 rows=820,000 width=538) (actual time=974.356..9,576.347 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".tipodocumento_codigo = t_1.codigo)
10. 156.031 4,398.147 ↑ 1.0 820,000 1

Hash Left Join (cost=152,590.50..304,870.68 rows=820,000 width=364) (actual time=974.187..4,398.147 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".gruposcontas_codigo = grct.codigo)
11. 204.752 4,242.114 ↑ 1.0 820,000 1

Hash Left Join (cost=152,570.60..302,677.54 rows=820,000 width=246) (actual time=974.183..4,242.114 rows=820,000 loops=1)

  • Hash Cond: (cr_sit.situacoesconta_codigo = sc.codigo)
12. 289.211 4,037.357 ↑ 1.0 820,000 1

Hash Left Join (cost=152,550.93..300,484.15 rows=820,000 width=125) (actual time=974.173..4,037.357 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".clientes_codigo = c.codigo)
13. 642.071 3,744.199 ↑ 1.0 820,000 1

Hash Join (cost=151,258.93..297,039.04 rows=820,000 width=99) (actual time=970.216..3,744.199 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".prevendas_codigo = pv.codigo)
14. 512.895 2,933.429 ↑ 1.0 820,000 1

Hash Left Join (cost=126,546.82..243,791.39 rows=820,000 width=91) (actual time=801.461..2,933.429 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_sit.contasareceber_codigo)
15. 447.753 2,292.858 ↑ 1.0 820,000 1

Hash Join (cost=101,262.89..190,728.96 rows=820,000 width=87) (actual time=673.745..2,292.858 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_fat.contasareceber_codigo)
16. 37.375 1,671.207 ↑ 1.0 820,000 1

Append (cost=74,385.76..136,073.31 rows=820,000 width=87) (actual time=499.809..1,671.207 rows=820,000 loops=1)

17. 76.557 1,633.832 ↑ 1.0 820,000 1

Subquery Scan on *SELECT* 1_1 (cost=74,385.76..131,973.31 rows=820,000 width=87) (actual time=499.808..1,633.832 rows=820,000 loops=1)

18. 403.874 1,557.275 ↑ 1.0 820,000 1

Hash Join (cost=74,385.76..123,773.31 rows=820,000 width=168) (actual time=499.807..1,557.275 rows=820,000 loops=1)

  • Hash Cond: (pvpg_cr.contasareceber_codigo = cr.codigo)
19. 289.211 886.183 ↑ 1.0 820,000 1

Hash Join (cost=40,879.81..73,699.86 rows=820,000 width=12) (actual time=232.563..886.183 rows=820,000 loops=1)

  • Hash Cond: (pvpg.codprevenda = pv_1.codigo)
20. 295.152 478.821 ↑ 1.0 820,000 1

Hash Join (cost=16,639.69..39,012.21 rows=820,000 width=8) (actual time=114.270..478.821 rows=820,000 loops=1)

  • Hash Cond: (pvpg_cr.prevendas_pagtos_codigo = pvpg.codigo)
21. 69.448 69.448 ↑ 1.0 820,000 1

Seq Scan on prevendas_pagtos_contasareceber pvpg_cr (cost=0.00..11,829.00 rows=820,000 width=8) (actual time=0.008..69.448 rows=820,000 loops=1)

22. 63.340 114.221 ↓ 1.0 507,455 1

Hash (cost=8,313.53..8,313.53 rows=507,453 width=8) (actual time=114.221..114.221 rows=507,455 loops=1)

  • Buckets: 131072 Batches: 8 Memory Usage: 3498kB
23. 50.881 50.881 ↓ 1.0 507,455 1

Seq Scan on prevenda_pagto pvpg (cost=0.00..8,313.53 rows=507,453 width=8) (actual time=0.005..50.881 rows=507,455 loops=1)

  • Filter: (codprevenda IS NOT NULL)
24. 56.704 118.151 ↑ 1.0 483,072 1

Hash (cost=16,314.72..16,314.72 rows=483,072 width=8) (actual time=118.151..118.151 rows=483,072 loops=1)

  • Buckets: 131072 Batches: 8 Memory Usage: 3385kB
25. 61.447 61.447 ↑ 1.0 483,072 1

Seq Scan on prevendas pv_1 (cost=0.00..16,314.72 rows=483,072 width=8) (actual time=0.053..61.447 rows=483,072 loops=1)

26. 142.613 267.218 ↑ 1.0 820,042 1

Hash (cost=16,848.42..16,848.42 rows=820,042 width=35) (actual time=267.218..267.218 rows=820,042 loops=1)

  • Buckets: 65536 Batches: 32 Memory Usage: 2161kB
27. 124.605 124.605 ↑ 1.0 820,042 1

Seq Scan on contasareceber cr (cost=0.00..16,848.42 rows=820,042 width=35) (actual time=0.114..124.605 rows=820,042 loops=1)

28. 91.794 173.898 ↓ 1.0 820,007 1

Hash (cost=13,423.06..13,423.06 rows=820,006 width=4) (actual time=173.898..173.898 rows=820,007 loops=1)

  • Buckets: 131072 Batches: 16 Memory Usage: 2832kB
29. 82.104 82.104 ↓ 1.0 820,007 1

Seq Scan on contasareceber_faturamentos cr_fat (cost=0.00..13,423.06 rows=820,006 width=4) (actual time=0.014..82.104 rows=820,007 loops=1)

  • Filter: (contasareceber_codigo IS NOT NULL)
30. 79.518 127.676 ↓ 1.0 820,042 1

Hash (cost=11,829.41..11,829.41 rows=820,041 width=8) (actual time=127.676..127.676 rows=820,042 loops=1)

  • Buckets: 131072 Batches: 16 Memory Usage: 3033kB
31. 48.158 48.158 ↓ 1.0 820,042 1

Seq Scan on contasareceber_situacao cr_sit (cost=0.00..11,829.41 rows=820,041 width=8) (actual time=0.006..48.158 rows=820,042 loops=1)

32. 64.002 168.699 ↑ 1.0 483,072 1

Hash (cost=16,314.72..16,314.72 rows=483,072 width=12) (actual time=168.699..168.699 rows=483,072 loops=1)

  • Buckets: 131072 Batches: 8 Memory Usage: 3385kB
33. 104.697 104.697 ↑ 1.0 483,072 1

Seq Scan on prevendas pv (cost=0.00..16,314.72 rows=483,072 width=12) (actual time=0.041..104.697 rows=483,072 loops=1)

34. 1.553 3.947 ↑ 1.0 14,622 1

Hash (cost=1,109.22..1,109.22 rows=14,622 width=30) (actual time=3.947..3.947 rows=14,622 loops=1)

  • Buckets: 16384 Batches: 1 Memory Usage: 1036kB
35. 2.394 2.394 ↑ 1.0 14,622 1

Seq Scan on clientes c (cost=0.00..1,109.22 rows=14,622 width=30) (actual time=0.004..2.394 rows=14,622 loops=1)

36. 0.001 0.005 ↑ 71.7 6 1

Hash (cost=14.30..14.30 rows=430 width=125) (actual time=0.005..0.005 rows=6 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
37. 0.004 0.004 ↑ 71.7 6 1

Seq Scan on situacoescontas sc (cost=0.00..14.30 rows=430 width=125) (actual time=0.003..0.004 rows=6 loops=1)

38. 0.001 0.002 ↓ 0.0 0 1

Hash (cost=14.40..14.40 rows=440 width=122) (actual time=0.002..0.002 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
39. 0.001 0.001 ↓ 0.0 0 1

Seq Scan on gruposcontas grct (cost=0.00..14.40 rows=440 width=122) (actual time=0.001..0.001 rows=0 loops=1)

40. 0.004 0.008 ↓ 1.0 22 1

Hash (cost=1.21..1.21 rows=21 width=82) (actual time=0.008..0.008 rows=22 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
41. 0.004 0.004 ↓ 1.0 22 1

Seq Scan on tipodocumento t_1 (cost=0.00..1.21 rows=21 width=82) (actual time=0.003..0.004 rows=22 loops=1)

42. 0.001 0.409 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2 (cost=22.88..1,813.97 rows=35 width=446) (actual time=0.409..0.409 rows=0 loops=1)

43. 0.000 0.408 ↓ 0.0 0 1

Nested Loop (cost=22.88..1,813.62 rows=35 width=538) (actual time=0.408..0.408 rows=0 loops=1)

44. 0.000 0.408 ↓ 0.0 0 1

Nested Loop Left Join (cost=22.45..1,509.38 rows=35 width=434) (actual time=0.408..0.408 rows=0 loops=1)

  • Join Filter: (t_2.codigo = "*SELECT* 2_1".tipodocumento_codigo)
45. 0.000 0.408 ↓ 0.0 0 1

Hash Left Join (cost=22.45..1,497.38 rows=35 width=356) (actual time=0.408..0.408 rows=0 loops=1)

  • Hash Cond: ("*SELECT* 2_1".gruposcontas_codigo = grct_1.codigo)
46. 0.001 0.408 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.55..1,477.39 rows=35 width=238) (actual time=0.408..0.408 rows=0 loops=1)

47. 0.000 0.407 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.40..1,471.61 rows=35 width=117) (actual time=0.407..0.407 rows=0 loops=1)

48. 0.000 0.407 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.98..1,176.12 rows=35 width=113) (actual time=0.407..0.407 rows=0 loops=1)

49. 0.024 0.407 ↓ 0.0 0 1

Nested Loop (cost=1.70..909.53 rows=35 width=87) (actual time=0.407..0.407 rows=0 loops=1)

50. 0.002 0.348 ↑ 1.0 35 1

Append (cost=1.27..613.96 rows=35 width=87) (actual time=0.044..0.348 rows=35 loops=1)

51. 0.005 0.346 ↑ 1.0 35 1

Subquery Scan on *SELECT* 2_1 (cost=1.27..613.78 rows=35 width=87) (actual time=0.044..0.346 rows=35 loops=1)

52. 0.027 0.341 ↑ 1.0 35 1

Nested Loop (cost=1.27..613.43 rows=35 width=168) (actual time=0.043..0.341 rows=35 loops=1)

53. 0.050 0.244 ↑ 1.0 35 1

Nested Loop (cost=0.85..592.24 rows=35 width=39) (actual time=0.035..0.244 rows=35 loops=1)

54. 0.012 0.124 ↑ 1.0 35 1

Nested Loop (cost=0.42..296.84 rows=35 width=39) (actual time=0.028..0.124 rows=35 loops=1)

55. 0.007 0.007 ↑ 1.0 35 1

Seq Scan on saidasnf_pagtos_contasareceber snfpg_cr (cost=0.00..1.35 rows=35 width=8) (actual time=0.005..0.007 rows=35 loops=1)

56. 0.105 0.105 ↑ 1.0 1 35

Index Scan using contasareceber_pkey1 on contasareceber cr_1 (cost=0.42..8.44 rows=1 width=35) (actual time=0.003..0.003 rows=1 loops=35)

  • Index Cond: (codigo = snfpg_cr.contasareceber_codigo)
57. 0.070 0.070 ↑ 1.0 1 35

Index Scan using saidasnf_pagto_pkey on saidasnf_pagto snfpg (cost=0.42..8.44 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=35)

  • Index Cond: (codigo = snfpg_cr.saidasnf_pagtos_codigo)
  • Filter: (codsaidasnf IS NOT NULL)
58. 0.070 0.070 ↑ 1.0 1 35

Index Scan using saidasnf_codigo_index on saidasnf snf_1 (cost=0.42..0.61 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=35)

  • Index Cond: (codigo = snfpg.codsaidasnf)
59. 0.035 0.035 ↓ 0.0 0 35

Index Only Scan using contasareceber_faturamentos_pkey on contasareceber_faturamentos cr_fat_1 (cost=0.42..8.45 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=35)

  • Index Cond: ((contasareceber_codigo = "*SELECT* 2_1".codigo) AND (contasareceber_codigo IS NOT NULL))
  • Heap Fetches: 0
60. 0.000 0.000 ↓ 0.0 0

Index Scan using unq_clientes on clientes c_1 (cost=0.29..7.62 rows=1 width=30) (never executed)

  • Index Cond: (codigo = "*SELECT* 2_1".clientes_codigo)
61. 0.000 0.000 ↓ 0.0 0

Index Scan using contasareceber_situacao_pkey on contasareceber_situacao cr_sit_1 (cost=0.42..8.44 rows=1 width=8) (never executed)

  • Index Cond: ("*SELECT* 2_1".codigo = contasareceber_codigo)
62. 0.000 0.000 ↓ 0.0 0

Index Scan using situacoescontas_pkey on situacoescontas sc_1 (cost=0.15..0.17 rows=1 width=125) (never executed)

  • Index Cond: (cr_sit_1.situacoesconta_codigo = codigo)
63. 0.000 0.000 ↓ 0.0 0

Hash (cost=14.40..14.40 rows=440 width=122) (never executed)

64. 0.000 0.000 ↓ 0.0 0

Seq Scan on gruposcontas grct_1 (cost=0.00..14.40 rows=440 width=122) (never executed)

65. 0.000 0.000 ↓ 0.0 0

Materialize (cost=0.00..1.31 rows=21 width=82) (never executed)

66. 0.000 0.000 ↓ 0.0 0

Seq Scan on tipodocumento t_2 (cost=0.00..1.21 rows=21 width=82) (never executed)

67. 0.000 0.000 ↓ 0.0 0

Index Scan using saidasnf_codigo_index on saidasnf snf (cost=0.42..8.44 rows=1 width=12) (never executed)

  • Index Cond: (codigo = "*SELECT* 2_1".saidasnf_codigo)
68. 0.002 4.423 ↑ 3,087.6 10 1

Subquery Scan on *SELECT* 3 (cost=43,727.86..52,428.76 rows=30,876 width=446) (actual time=4.332..4.423 rows=10 loops=1)

69. 0.244 4.421 ↑ 3,087.6 10 1

Merge Right Join (cost=43,727.86..52,120.00 rows=30,876 width=538) (actual time=4.332..4.421 rows=10 loops=1)

  • Merge Cond: (cat.contasareceber_avulsas_codigo = "*SELECT* 3_1".contasareceber_avulsas_codigo)
70. 0.005 0.018 ↑ 390.0 2 1

Sort (cost=55.27..57.22 rows=780 width=8) (actual time=0.018..0.018 rows=2 loops=1)

  • Sort Key: cat.contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 25kB
71. 0.013 0.013 ↑ 390.0 2 1

Seq Scan on contasareceber_avulsas_tecnicos cat (cost=0.00..17.80 rows=780 width=8) (actual time=0.013..0.013 rows=2 loops=1)

72. 0.005 4.159 ↑ 879.7 9 1

Materialize (cost=43,672.59..43,821.29 rows=7,917 width=438) (actual time=4.150..4.159 rows=9 loops=1)

73. 0.006 4.154 ↑ 989.6 8 1

Merge Left Join (cost=43,672.59..43,801.50 rows=7,917 width=438) (actual time=4.149..4.154 rows=8 loops=1)

  • Merge Cond: ("*SELECT* 3_1".contasareceber_avulsas_codigo = cav.contasareceber_avulsas_codigo)
74. 0.006 4.138 ↑ 290.0 7 1

Sort (cost=43,617.33..43,622.40 rows=2,030 width=434) (actual time=4.137..4.138 rows=7 loops=1)

  • Sort Key: "*SELECT* 3_1".contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 26kB
75. 0.003 4.132 ↑ 290.0 7 1

Nested Loop Left Join (cost=1,314.79..43,505.80 rows=2,030 width=434) (actual time=4.072..4.132 rows=7 loops=1)

76. 0.005 4.101 ↑ 290.0 7 1

Hash Left Join (cost=1,314.22..29,856.00 rows=2,030 width=309) (actual time=4.062..4.101 rows=7 loops=1)

  • Hash Cond: ("*SELECT* 3_1".tipodocumento_codigo = t_3.codigo)
77. 0.005 4.088 ↑ 290.0 7 1

Hash Left Join (cost=1,312.75..29,849.08 rows=2,030 width=231) (actual time=4.051..4.088 rows=7 loops=1)

  • Hash Cond: ("*SELECT* 3_1".gruposcontas_codigo = grct_2.codigo)
78. 0.010 4.081 ↑ 290.0 7 1

Hash Left Join (cost=1,292.85..29,823.80 rows=2,030 width=113) (actual time=4.044..4.081 rows=7 loops=1)

  • Hash Cond: ("*SELECT* 3_1".clientes_codigo = c_2.codigo)
79. 0.006 0.049 ↑ 290.0 7 1

Nested Loop (cost=0.85..28,526.48 rows=2,030 width=87) (actual time=0.015..0.049 rows=7 loops=1)

80. 0.001 0.029 ↑ 290.0 7 1

Append (cost=0.42..14,791.13 rows=2,030 width=87) (actual time=0.009..0.029 rows=7 loops=1)

81. 0.002 0.028 ↑ 290.0 7 1

Subquery Scan on *SELECT* 3_1 (cost=0.42..14,780.98 rows=2,030 width=87) (actual time=0.009..0.028 rows=7 loops=1)

82. 0.008 0.026 ↑ 290.0 7 1

Nested Loop (cost=0.42..14,760.68 rows=2,030 width=168) (actual time=0.008..0.026 rows=7 loops=1)

83. 0.004 0.004 ↑ 290.0 7 1

Seq Scan on contasareceber_avulsas crav (cost=0.00..30.40 rows=2,030 width=12) (actual time=0.003..0.004 rows=7 loops=1)

  • Filter: (codigo IS NOT NULL)
84. 0.014 0.014 ↑ 1.0 1 7

Index Scan using contasareceber_pkey1 on contasareceber cr_2 (cost=0.42..7.26 rows=1 width=35) (actual time=0.002..0.002 rows=1 loops=7)

  • Index Cond: (codigo = crav.contasareceber_codigo)
85. 0.014 0.014 ↑ 1.0 1 7

Index Only Scan using contasareceber_faturamentos_pkey on contasareceber_faturamentos cr_fat_2 (cost=0.42..6.77 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=7)

  • Index Cond: ((contasareceber_codigo = "*SELECT* 3_1".codigo) AND (contasareceber_codigo IS NOT NULL))
  • Heap Fetches: 7
86. 1.659 4.022 ↑ 1.0 14,622 1

Hash (cost=1,109.22..1,109.22 rows=14,622 width=30) (actual time=4.022..4.022 rows=14,622 loops=1)

  • Buckets: 16384 Batches: 1 Memory Usage: 1036kB
87. 2.363 2.363 ↑ 1.0 14,622 1

Seq Scan on clientes c_2 (cost=0.00..1,109.22 rows=14,622 width=30) (actual time=0.003..2.363 rows=14,622 loops=1)

88. 0.000 0.002 ↓ 0.0 0 1

Hash (cost=14.40..14.40 rows=440 width=122) (actual time=0.002..0.002 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
89. 0.002 0.002 ↓ 0.0 0 1

Seq Scan on gruposcontas grct_2 (cost=0.00..14.40 rows=440 width=122) (actual time=0.002..0.002 rows=0 loops=1)

90. 0.003 0.008 ↓ 1.0 22 1

Hash (cost=1.21..1.21 rows=21 width=82) (actual time=0.008..0.008 rows=22 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
91. 0.005 0.005 ↓ 1.0 22 1

Seq Scan on tipodocumento t_3 (cost=0.00..1.21 rows=21 width=82) (actual time=0.003..0.005 rows=22 loops=1)

92. 0.007 0.028 ↑ 1.0 1 7

Nested Loop Left Join (cost=0.57..6.71 rows=1 width=129) (actual time=0.004..0.004 rows=1 loops=7)

93. 0.014 0.014 ↑ 1.0 1 7

Index Scan using contasareceber_situacao_pkey on contasareceber_situacao cr_sit_2 (cost=0.42..6.55 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=7)

  • Index Cond: ("*SELECT* 3_1".codigo = contasareceber_codigo)
94. 0.007 0.007 ↑ 1.0 1 7

Index Scan using situacoescontas_pkey on situacoescontas sc_2 (cost=0.15..0.17 rows=1 width=125) (actual time=0.001..0.001 rows=1 loops=7)

  • Index Cond: (cr_sit_2.situacoesconta_codigo = codigo)
95. 0.003 0.010 ↑ 97.5 8 1

Sort (cost=55.27..57.22 rows=780 width=8) (actual time=0.009..0.010 rows=8 loops=1)

  • Sort Key: cav.contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 25kB
96. 0.007 0.007 ↑ 97.5 8 1

Seq Scan on contasareceber_avulsas_vendedores cav (cost=0.00..17.80 rows=780 width=8) (actual time=0.006..0.007 rows=8 loops=1)

97. 0.005 0.028 ↑ 1.0 39 1

Hash (cost=2.39..2.39 rows=39 width=13) (actual time=0.028..0.028 rows=39 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
98. 0.023 0.023 ↑ 1.0 39 1

Seq Scan on vendedores v (cost=0.00..2.39 rows=39 width=13) (actual time=0.012..0.023 rows=39 loops=1)

99. 0.006 187.087 ↑ 16,460.6 49 1

Materialize (cost=110,940.41..114,973.25 rows=806,569 width=12) (actual time=187.080..187.087 rows=49 loops=1)

100. 96.329 187.081 ↑ 16,460.6 49 1

Sort (cost=110,940.41..112,956.83 rows=806,569 width=12) (actual time=187.077..187.081 rows=49 loops=1)

  • Sort Key: crpg.contasareceber_faturamentos_cr_codigo
  • Sort Method: external merge Disk: 17432kB
101. 90.752 90.752 ↑ 1.0 806,569 1

Seq Scan on contasareceber_pagtos crpg (cost=0.00..18,023.69 rows=806,569 width=12) (actual time=0.019..90.752 rows=806,569 loops=1)

102. 0.000 0.000 ↓ 0.0 0 50

Index Scan using tecnicos_pkey on tecnicos t (cost=0.14..0.16 rows=1 width=122) (actual time=0.000..0.000 rows=0 loops=50)

  • Index Cond: (codigo = "*SELECT* 1".tecnicos_codigo)
Planning time : 10.463 ms
Execution time : 10,911.062 ms