explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7R5H

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 11,041.050 ↑ 1.0 50 1

Limit (cost=1,198,221.53..1,237,641.38 rows=50 width=582) (actual time=11,040.981..11,041.050 rows=50 loops=1)

2. 0.020 11,041.047 ↑ 4.0 50 1

Unique (cost=1,198,221.53..1,355,900.93 rows=200 width=582) (actual time=11,040.980..11,041.047 rows=50 loops=1)

3. 0.021 11,041.027 ↑ 17,061.6 50 1

Nested Loop Left Join (cost=1,198,221.53..1,353,768.23 rows=853,080 width=582) (actual time=11,040.978..11,041.027 rows=50 loops=1)

4. 0.026 11,041.006 ↑ 17,061.6 50 1

Merge Left Join (cost=1,198,221.38..1,217,299.41 rows=853,080 width=463) (actual time=11,040.971..11,041.006 rows=50 loops=1)

  • Merge Cond: ("*SELECT* 1".codigo = crpg.contasareceber_faturamentos_cr_codigo)
5. 667.667 10,852.422 ↑ 17,061.6 50 1

Sort (cost=1,087,280.97..1,089,413.67 rows=853,080 width=455) (actual time=10,852.414..10,852.422 rows=50 loops=1)

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

Hash Left Join (cost=152,631.38..653,340.69 rows=853,080 width=455) (actual time=977.576..10,184.755 rows=820,010 loops=1)

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

Append (cost=152,628.50..651,051.03 rows=853,080 width=446) (actual time=977.545..9,945.408 rows=820,010 loops=1)

8. 151.193 9,870.002 ↓ 1.0 820,000 1

Subquery Scan on *SELECT* 1 (cost=152,628.50..522,341.64 rows=819,944 width=446) (actual time=977.545..9,870.002 rows=820,000 loops=1)

9. 5,287.189 9,718.809 ↓ 1.0 820,000 1

Hash Left Join (cost=152,628.50..514,142.20 rows=819,944 width=538) (actual time=977.543..9,718.809 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".tipodocumento_codigo = t_1.codigo)
10. 160.243 4,431.612 ↓ 1.0 820,000 1

Hash Left Join (cost=152,627.02..304,906.91 rows=819,944 width=364) (actual time=977.335..4,431.612 rows=820,000 loops=1)

  • Hash Cond: ("*SELECT* 1_1".gruposcontas_codigo = grct.codigo)
11. 203.684 4,271.367 ↓ 1.0 820,000 1

Hash Left Join (cost=152,607.12..302,713.92 rows=819,944 width=246) (actual time=977.331..4,271.367 rows=820,000 loops=1)

  • Hash Cond: (cr_sit.situacoesconta_codigo = sc.codigo)
12. 302.848 4,067.675 ↓ 1.0 820,000 1

Hash Join (cost=152,587.45..300,520.67 rows=819,944 width=125) (actual time=977.291..4,067.675 rows=820,000 loops=1)

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

Hash Join (cost=151,258.91..297,039.01 rows=820,000 width=99) (actual time=965.304..3,752.848 rows=820,000 loops=1)

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

Hash Left Join (cost=126,546.79..243,791.37 rows=820,000 width=91) (actual time=802.849..2,933.730 rows=820,000 loops=1)

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

Hash Join (cost=101,262.87..190,728.94 rows=820,000 width=87) (actual time=675.127..2,302.699 rows=820,000 loops=1)

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

Append (cost=74,385.74..136,073.29 rows=820,000 width=87) (actual time=499.998..1,674.893 rows=820,000 loops=1)

17. 76.759 1,637.605 ↑ 1.0 820,000 1

Subquery Scan on *SELECT* 1_1 (cost=74,385.74..131,973.29 rows=820,000 width=87) (actual time=499.997..1,637.605 rows=820,000 loops=1)

18. 406.662 1,560.846 ↑ 1.0 820,000 1

Hash Join (cost=74,385.74..123,773.29 rows=820,000 width=168) (actual time=499.996..1,560.846 rows=820,000 loops=1)

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

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

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

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

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

22. 61.786 111.592 ↓ 1.0 507,455 1

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

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

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

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

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

26. 143.855 266.708 ↓ 1.0 820,042 1

Hash (cost=16,848.41..16,848.41 rows=820,041 width=35) (actual time=266.708..266.708 rows=820,042 loops=1)

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

Seq Scan on contasareceber cr (cost=0.00..16,848.41 rows=820,041 width=35) (actual time=0.011..122.853 rows=820,042 loops=1)

28. 93.194 175.091 ↓ 1.0 820,007 1

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

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

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

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

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

32. 63.071 162.415 ↑ 1.0 483,072 1

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

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

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

34. 1.974 11.979 ↓ 1.0 14,622 1

Hash (cost=1,145.78..1,145.78 rows=14,621 width=30) (actual time=11.979..11.979 rows=14,622 loops=1)

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

Seq Scan on clientes c (cost=0.00..1,145.78 rows=14,621 width=30) (actual time=0.010..10.005 rows=14,622 loops=1)

  • Filter: ((nome)::text ~~* '%'::text)
36. 0.003 0.008 ↑ 71.7 6 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
37. 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.005..0.005 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.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
41. 0.005 0.005 ↓ 1.0 22 1

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

42. 0.000 0.338 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2 (cost=1,332.85..71,978.69 rows=2,260 width=446) (actual time=0.338..0.338 rows=0 loops=1)

43. 0.000 0.338 ↓ 0.0 0 1

Nested Loop (cost=1,332.85..71,956.09 rows=2,260 width=538) (actual time=0.338..0.338 rows=0 loops=1)

44. 0.001 0.338 ↓ 0.0 0 1

Hash Left Join (cost=1,332.43..59,027.04 rows=2,260 width=434) (actual time=0.337..0.338 rows=0 loops=1)

  • Hash Cond: ("*SELECT* 2_1".tipodocumento_codigo = t_2.codigo)
45. 0.000 0.337 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,330.95..59,019.51 rows=2,260 width=356) (actual time=0.337..0.337 rows=0 loops=1)

46. 0.000 0.337 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,330.81..58,602.79 rows=2,260 width=238) (actual time=0.337..0.337 rows=0 loops=1)

47. 0.001 0.337 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,330.66..58,229.85 rows=2,260 width=117) (actual time=0.337..0.337 rows=0 loops=1)

48. 0.000 0.336 ↓ 0.0 0 1

Hash Join (cost=1,330.23..43,793.80 rows=2,260 width=113) (actual time=0.336..0.336 rows=0 loops=1)

  • Hash Cond: ("*SELECT* 2_1".clientes_codigo = c_1.codigo)
49. 0.001 0.336 ↓ 0.0 0 1

Nested Loop (cost=1.70..42,459.33 rows=2,260 width=87) (actual time=0.336..0.336 rows=0 loops=1)

50. 0.003 0.265 ↑ 64.6 35 1

Append (cost=1.27..27,493.63 rows=2,260 width=87) (actual time=0.043..0.265 rows=35 loops=1)

51. 0.004 0.262 ↑ 64.6 35 1

Subquery Scan on *SELECT* 2_1 (cost=1.27..27,482.33 rows=2,260 width=87) (actual time=0.042..0.262 rows=35 loops=1)

52. 0.024 0.258 ↑ 64.6 35 1

Nested Loop (cost=1.27..27,459.73 rows=2,260 width=168) (actual time=0.042..0.258 rows=35 loops=1)

53. 0.000 0.164 ↑ 64.6 35 1

Nested Loop (cost=0.85..26,091.05 rows=2,260 width=39) (actual time=0.035..0.164 rows=35 loops=1)

54. 0.017 0.094 ↑ 64.6 35 1

Nested Loop (cost=0.42..16,180.65 rows=2,260 width=39) (actual time=0.029..0.094 rows=35 loops=1)

55. 0.007 0.007 ↑ 64.6 35 1

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

56. 0.070 0.070 ↑ 1.0 1 35

Index Scan using contasareceber_pkey1 on contasareceber cr_1 (cost=0.42..7.15 rows=1 width=35) (actual time=0.002..0.002 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..4.39 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.070 0.070 ↓ 0.0 0 35

Index Only Scan using contasareceber_faturamentos_pkey on contasareceber_faturamentos cr_fat_1 (cost=0.42..6.62 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
60. 0.000 0.000 ↓ 0.0 0

Hash (cost=1,145.78..1,145.78 rows=14,621 width=30) (never executed)

61. 0.000 0.000 ↓ 0.0 0

Seq Scan on clientes c_1 (cost=0.00..1,145.78 rows=14,621 width=30) (never executed)

  • Filter: ((nome)::text ~~* '%'::text)
62. 0.000 0.000 ↓ 0.0 0

Index Scan using contasareceber_situacao_pkey on contasareceber_situacao cr_sit_1 (cost=0.42..6.39 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

Index Scan using gruposcontas_pkey on gruposcontas grct_1 (cost=0.15..0.18 rows=1 width=122) (never executed)

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

Hash (cost=1.21..1.21 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..5.47 rows=1 width=12) (never executed)

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

Subquery Scan on *SELECT* 3 (cost=43,764.41..52,465.30 rows=30,876 width=446) (actual time=12.026..12.093 rows=10 loops=1)

69. 0.250 12.088 ↑ 3,087.6 10 1

Merge Right Join (cost=43,764.41..52,156.54 rows=30,876 width=538) (actual time=12.022..12.088 rows=10 loops=1)

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

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

  • Sort Key: cat.contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 25kB
71. 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)

72. 0.005 11.830 ↑ 879.7 9 1

Materialize (cost=43,709.14..43,857.83 rows=7,917 width=438) (actual time=11.821..11.830 rows=9 loops=1)

73. 0.008 11.825 ↑ 989.6 8 1

Merge Left Join (cost=43,709.14..43,838.04 rows=7,917 width=438) (actual time=11.819..11.825 rows=8 loops=1)

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

Sort (cost=43,653.87..43,658.94 rows=2,030 width=434) (actual time=11.810..11.810 rows=7 loops=1)

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

Nested Loop Left Join (cost=1,351.33..43,542.35 rows=2,030 width=434) (actual time=11.739..11.804 rows=7 loops=1)

76. 0.005 11.770 ↑ 290.0 7 1

Hash Left Join (cost=1,350.76..29,892.54 rows=2,030 width=309) (actual time=11.726..11.770 rows=7 loops=1)

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

Hash Left Join (cost=1,349.29..29,885.63 rows=2,030 width=231) (actual time=11.715..11.757 rows=7 loops=1)

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

Hash Join (cost=1,329.39..29,860.34 rows=2,030 width=113) (actual time=11.705..11.747 rows=7 loops=1)

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

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

80. 0.001 0.032 ↑ 290.0 7 1

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

81. 0.002 0.031 ↑ 290.0 7 1

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

82. 0.011 0.029 ↑ 290.0 7 1

Nested Loop (cost=0.42..14,760.68 rows=2,030 width=168) (actual time=0.008..0.029 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.727 11.682 ↓ 1.0 14,622 1

Hash (cost=1,145.78..1,145.78 rows=14,621 width=30) (actual time=11.682..11.682 rows=14,622 loops=1)

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

Seq Scan on clientes c_2 (cost=0.00..1,145.78 rows=14,621 width=30) (actual time=0.007..9.955 rows=14,622 loops=1)

  • Filter: ((nome)::text ~~* '%'::text)
88. 0.000 0.003 ↓ 0.0 0 1

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

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

Seq Scan on gruposcontas grct_2 (cost=0.00..14.40 rows=440 width=122) (actual time=0.003..0.003 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.004..0.005 rows=22 loops=1)

92. 0.000 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.021 0.021 ↑ 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.003 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.007 ↑ 97.5 8 1

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

  • Sort Key: cav.contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 25kB
96. 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.003..0.004 rows=8 loops=1)

97. 0.005 0.027 ↑ 1.0 39 1

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

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

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

99. 0.006 188.558 ↑ 16,460.6 49 1

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

100. 99.566 188.552 ↑ 16,460.6 49 1

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

  • Sort Key: crpg.contasareceber_faturamentos_cr_codigo
  • Sort Method: external merge Disk: 17432kB
101. 88.986 88.986 ↑ 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.986 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.191 ms
Execution time : 11,059.082 ms