explain.depesz.com

PostgreSQL's explain analyze made readable

Result: L1jZ

Settings
# exclusive inclusive rows x rows loops node
1. 0.004 11,130.370 ↑ 1.0 50 1

Limit (cost=1,175,117.53..1,214,438.46 rows=50 width=582) (actual time=11,130.301..11,130.370 rows=50 loops=1)

2. 0.018 11,130.366 ↑ 4.0 50 1

Unique (cost=1,175,117.53..1,332,401.26 rows=200 width=582) (actual time=11,130.300..11,130.366 rows=50 loops=1)

3. 0.022 11,130.348 ↑ 17,018.2 50 1

Nested Loop Left Join (cost=1,175,117.53..1,330,273.98 rows=850,911 width=582) (actual time=11,130.298..11,130.348 rows=50 loops=1)

4. 0.026 11,130.326 ↑ 17,018.2 50 1

Merge Left Join (cost=1,175,117.39..1,194,152.03 rows=850,911 width=463) (actual time=11,130.290..11,130.326 rows=50 loops=1)

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

Sort (cost=1,064,176.98..1,066,304.26 rows=850,911 width=455) (actual time=10,943.692..10,943.700 rows=50 loops=1)

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

Hash Left Join (cost=152,594.85..631,355.00 rows=850,911 width=455) (actual time=1,003.659..10,271.700 rows=820,010 loops=1)

  • Hash Cond: ("*SELECT* 1".vendedores_codigo = v.codigo)
7. 73.655 10,038.058 ↑ 1.0 820,010 1

Append (cost=152,591.98..629,071.14 rows=850,911 width=446) (actual time=1,003.642..10,038.058 rows=820,010 loops=1)

8. 146.016 9,959.161 ↑ 1.0 820,000 1

Subquery Scan on *SELECT* 1 (cost=152,591.98..570,757.06 rows=820,000 width=446) (actual time=1,003.642..9,959.161 rows=820,000 loops=1)

9. 5,240.734 9,813.145 ↑ 1.0 820,000 1

Hash Left Join (cost=152,591.98..562,557.06 rows=820,000 width=538) (actual time=1,003.640..9,813.145 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".gruposcontas_codigo = grct.codigo)
10. 228.932 4,572.409 ↑ 1.0 820,000 1

Hash Left Join (cost=152,572.08..353,313.92 rows=820,000 width=324) (actual time=1,003.430..4,572.409 rows=820,000 loops=1)

  • Hash Cond: (cr_sit.situacoesconta_codigo = sc.codigo)
11. 304.324 4,343.470 ↑ 1.0 820,000 1

Hash Left Join (cost=152,552.40..351,120.53 rows=820,000 width=203) (actual time=1,003.420..4,343.470 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".clientes_codigo = c.codigo)
12. 687.906 4,035.218 ↑ 1.0 820,000 1

Hash Join (cost=151,260.41..347,675.42 rows=820,000 width=177) (actual time=999.482..4,035.218 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".prevendas_codigo = pv.codigo)
13. 540.457 3,180.768 ↑ 1.0 820,000 1

Hash Left Join (cost=126,548.29..278,411.77 rows=820,000 width=169) (actual time=832.900..3,180.768 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_sit.contasareceber_codigo)
14. 484.042 2,500.947 ↑ 1.0 820,000 1

Hash Join (cost=101,264.37..209,333.34 rows=820,000 width=165) (actual time=693.499..2,500.947 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_fat.contasareceber_codigo)
15. 37.356 1,833.712 ↑ 1.0 820,000 1

Append (cost=74,387.23..138,661.69 rows=820,000 width=165) (actual time=510.264..1,833.712 rows=820,000 loops=1)

16. 82.198 1,796.356 ↑ 1.0 820,000 1

Subquery Scan on *SELECT* 1_1 (cost=74,387.23..134,561.69 rows=820,000 width=165) (actual time=510.263..1,796.356 rows=820,000 loops=1)

17. 147.316 1,714.158 ↑ 1.0 820,000 1

Hash Left Join (cost=74,387.23..126,361.69 rows=820,000 width=246) (actual time=510.262..1,714.158 rows=820,000 loops=1)

  • Hash Cond: (cr.tipodocumento_codigo = t_1.codigo)
18. 388.306 1,566.819 ↑ 1.0 820,000 1

Hash Join (cost=74,385.76..123,773.31 rows=820,000 width=43) (actual time=510.232..1,566.819 rows=820,000 loops=1)

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

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

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

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

  • Hash Cond: (pvpg_cr.prevendas_pagtos_codigo = pvpg.codigo)
21. 71.776 71.776 ↑ 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.007..71.776 rows=820,000 loops=1)

22. 64.159 114.815 ↓ 1.0 507,455 1

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

  • Buckets: 131072 Batches: 8 Memory Usage: 3498kB
23. 50.656 50.656 ↓ 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.656 rows=507,455 loops=1)

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

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

  • Buckets: 131072 Batches: 8 Memory Usage: 3385kB
25. 62.670 62.670 ↑ 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.012..62.670 rows=483,072 loops=1)

26. 147.018 273.664 ↑ 1.0 820,042 1

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

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

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

28. 0.004 0.023 ↓ 1.0 22 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
29. 0.019 0.019 ↓ 1.0 22 1

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

30. 97.118 183.193 ↓ 1.0 820,007 1

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

  • Buckets: 131072 Batches: 16 Memory Usage: 2832kB
31. 86.075 86.075 ↓ 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.012..86.075 rows=820,007 loops=1)

  • Filter: (contasareceber_codigo IS NOT NULL)
32. 85.476 139.364 ↓ 1.0 820,042 1

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

  • Buckets: 131072 Batches: 16 Memory Usage: 3033kB
33. 53.888 53.888 ↓ 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.009..53.888 rows=820,042 loops=1)

34. 64.146 166.544 ↑ 1.0 483,072 1

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

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

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

36. 1.554 3.928 ↑ 1.0 14,622 1

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

  • Buckets: 16384 Batches: 1 Memory Usage: 1036kB
37. 2.374 2.374 ↑ 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.374 rows=14,622 loops=1)

38. 0.002 0.007 ↑ 71.7 6 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
39. 0.005 0.005 ↑ 71.7 6 1

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

40. 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
41. 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)

42. 0.001 0.546 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2 (cost=23.01..1,807.36 rows=35 width=446) (actual time=0.546..0.546 rows=0 loops=1)

43. 0.000 0.545 ↓ 0.0 0 1

Nested Loop (cost=23.01..1,807.01 rows=35 width=538) (actual time=0.545..0.545 rows=0 loops=1)

44. 0.001 0.545 ↓ 0.0 0 1

Hash Left Join (cost=22.59..1,502.77 rows=35 width=434) (actual time=0.545..0.545 rows=0 loops=1)

  • Hash Cond: ("*SELECT* 2_1".gruposcontas_codigo = grct_1.codigo)
45. 0.000 0.544 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.69..1,482.78 rows=35 width=316) (actual time=0.544..0.544 rows=0 loops=1)

46. 0.000 0.544 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.54..1,477.01 rows=35 width=195) (actual time=0.544..0.544 rows=0 loops=1)

47. 0.001 0.544 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.12..1,181.52 rows=35 width=191) (actual time=0.544..0.544 rows=0 loops=1)

48. 0.043 0.543 ↓ 0.0 0 1

Nested Loop (cost=1.83..914.93 rows=35 width=165) (actual time=0.543..0.543 rows=0 loops=1)

49. 0.003 0.430 ↑ 1.0 35 1

Append (cost=1.41..619.35 rows=35 width=165) (actual time=0.056..0.430 rows=35 loops=1)

50. 0.004 0.427 ↑ 1.0 35 1

Subquery Scan on *SELECT* 2_1 (cost=1.41..619.18 rows=35 width=165) (actual time=0.056..0.427 rows=35 loops=1)

51. 0.000 0.423 ↑ 1.0 35 1

Nested Loop Left Join (cost=1.41..618.83 rows=35 width=246) (actual time=0.056..0.423 rows=35 loops=1)

52. 0.015 0.353 ↑ 1.0 35 1

Nested Loop (cost=1.27..613.43 rows=35 width=43) (actual time=0.033..0.353 rows=35 loops=1)

53. 0.017 0.233 ↑ 1.0 35 1

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

54. 0.032 0.146 ↑ 1.0 35 1

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

55. 0.009 0.009 ↑ 1.0 35 1

Seq Scan on saidasnf_pagtos_contasareceber snfpg_cr (cost=0.00..1.35 rows=35 width=8) (actual time=0.006..0.009 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.105 0.105 ↑ 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.003..0.003 rows=1 loops=35)

  • Index Cond: (codigo = snfpg.codsaidasnf)
59. 0.070 0.070 ↑ 1.0 1 35

Index Scan using tipodocumento_pkey on tipodocumento t_2 (cost=0.14..0.16 rows=1 width=82) (actual time=0.002..0.002 rows=1 loops=35)

  • Index Cond: (codigo = cr_1.tipodocumento_codigo)
60. 0.070 0.070 ↓ 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.002..0.002 rows=0 loops=35)

  • Index Cond: ((contasareceber_codigo = "*SELECT* 2_1".codigo) AND (contasareceber_codigo IS NOT NULL))
  • Heap Fetches: 0
61. 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)
62. 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)
63. 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)
64. 0.000 0.000 ↓ 0.0 0

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

65. 0.000 0.000 ↓ 0.0 0

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

66. 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)
67. 0.003 4.696 ↑ 3,087.6 10 1

Subquery Scan on *SELECT* 3 (cost=43,387.59..52,252.16 rows=30,876 width=446) (actual time=4.622..4.696 rows=10 loops=1)

68. 0.241 4.693 ↑ 3,087.6 10 1

Hash Left Join (cost=43,387.59..51,943.40 rows=30,876 width=538) (actual time=4.621..4.693 rows=10 loops=1)

  • Hash Cond: ("*SELECT* 3_1".gruposcontas_codigo = grct_2.codigo)
69. 0.008 4.450 ↑ 3,087.6 10 1

Hash Left Join (cost=43,367.69..44,045.48 rows=30,876 width=324) (actual time=4.433..4.450 rows=10 loops=1)

  • Hash Cond: (cr_sit_2.situacoesconta_codigo = sc_2.codigo)
70. 0.007 4.437 ↑ 3,087.6 10 1

Merge Right Join (cost=43,348.01..43,943.96 rows=30,876 width=203) (actual time=4.423..4.437 rows=10 loops=1)

  • Merge Cond: (cat.contasareceber_avulsas_codigo = "*SELECT* 3_1".contasareceber_avulsas_codigo)
71. 0.006 0.010 ↑ 390.0 2 1

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

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

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

73. 0.004 4.420 ↑ 879.7 9 1

Materialize (cost=43,292.74..43,441.44 rows=7,917 width=199) (actual time=4.412..4.420 rows=9 loops=1)

74. 0.008 4.416 ↑ 989.6 8 1

Merge Left Join (cost=43,292.74..43,421.65 rows=7,917 width=199) (actual time=4.410..4.416 rows=8 loops=1)

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

Sort (cost=43,237.47..43,242.55 rows=2,030 width=195) (actual time=4.399..4.400 rows=7 loops=1)

  • Sort Key: "*SELECT* 3_1".contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 26kB
76. 0.007 4.394 ↑ 290.0 7 1

Nested Loop Left Join (cost=1,294.74..43,125.95 rows=2,030 width=195) (actual time=4.327..4.394 rows=7 loops=1)

77. 0.010 4.373 ↑ 290.0 7 1

Hash Left Join (cost=1,294.32..29,831.68 rows=2,030 width=191) (actual time=4.319..4.373 rows=7 loops=1)

  • Hash Cond: ("*SELECT* 3_1".clientes_codigo = c_2.codigo)
78. 0.008 0.080 ↑ 290.0 7 1

Nested Loop (cost=2.32..28,534.36 rows=2,030 width=165) (actual time=0.028..0.080 rows=7 loops=1)

79. 0.001 0.058 ↑ 290.0 7 1

Append (cost=1.90..14,799.01 rows=2,030 width=165) (actual time=0.022..0.058 rows=7 loops=1)

80. 0.002 0.057 ↑ 290.0 7 1

Subquery Scan on *SELECT* 3_1 (cost=1.90..14,788.86 rows=2,030 width=165) (actual time=0.022..0.057 rows=7 loops=1)

81. 0.007 0.055 ↑ 290.0 7 1

Hash Left Join (cost=1.90..14,768.56 rows=2,030 width=246) (actual time=0.021..0.055 rows=7 loops=1)

  • Hash Cond: (cr_2.tipodocumento_codigo = t_3.codigo)
82. 0.007 0.039 ↑ 290.0 7 1

Nested Loop (cost=0.42..14,760.68 rows=2,030 width=43) (actual time=0.008..0.039 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.002..0.004 rows=7 loops=1)

  • Filter: (codigo IS NOT NULL)
84. 0.028 0.028 ↑ 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.004..0.004 rows=1 loops=7)

  • Index Cond: (codigo = crav.contasareceber_codigo)
85. 0.005 0.009 ↓ 1.0 22 1

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

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

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

87. 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
88. 1.739 4.283 ↑ 1.0 14,622 1

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

  • Buckets: 16384 Batches: 1 Memory Usage: 1036kB
89. 2.544 2.544 ↑ 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.544 rows=14,622 loops=1)

90. 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)
91. 0.004 0.008 ↑ 97.5 8 1

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

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

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

93. 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
94. 0.004 0.004 ↑ 71.7 6 1

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

95. 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
96. 0.001 0.001 ↓ 0.0 0 1

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

97. 0.005 0.013 ↑ 1.0 39 1

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

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

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

99. 0.005 186.600 ↑ 16,460.6 49 1

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

100. 98.409 186.595 ↑ 16,460.6 49 1

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

  • Sort Key: crpg.contasareceber_faturamentos_cr_codigo
  • Sort Method: external merge Disk: 17432kB
101. 88.186 88.186 ↑ 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.014..88.186 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.865 ms
Execution time : 11,147.742 ms