explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tjmg

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 17,428.299 ↑ 1.0 50 1

Limit (cost=1,198,156.87..1,237,579.13 rows=50 width=582) (actual time=17,428.197..17,428.299 rows=50 loops=1)

2. 0.029 17,428.296 ↑ 4.0 50 1

Unique (cost=1,198,156.87..1,355,845.93 rows=200 width=582) (actual time=17,428.197..17,428.296 rows=50 loops=1)

3. 0.032 17,428.267 ↑ 17,062.7 50 1

Nested Loop Left Join (cost=1,198,156.87..1,353,713.10 rows=853,133 width=582) (actual time=17,428.194..17,428.267 rows=50 loops=1)

4. 0.039 17,428.235 ↑ 17,062.7 50 1

Merge Left Join (cost=1,198,156.73..1,217,235.81 rows=853,133 width=463) (actual time=17,428.184..17,428.235 rows=50 loops=1)

  • Merge Cond: ("*SELECT* 1".codigo = crpg.contasareceber_faturamentos_cr_codigo)
5. 1,124.586 17,139.985 ↑ 17,062.7 50 1

Sort (cost=1,087,216.32..1,089,349.15 rows=853,133 width=455) (actual time=17,139.975..17,139.985 rows=50 loops=1)

  • Sort Key: "*SELECT* 1".codigo
  • Sort Method: external merge Disk: 117168kB
6. 437.462 16,015.399 ↑ 1.0 820,009 1

Hash Left Join (cost=152,594.59..653,249.43 rows=853,133 width=455) (actual time=1,472.377..16,015.399 rows=820,009 loops=1)

  • Hash Cond: ("*SELECT* 1".vendedores_codigo = v.codigo)
7. 89.474 15,577.912 ↑ 1.0 820,009 1

Append (cost=152,591.71..650,959.62 rows=853,133 width=446) (actual time=1,472.346..15,577.912 rows=820,009 loops=1)

8. 231.146 15,482.422 ↑ 1.0 819,997 1

Subquery Scan on *SELECT* 1 (cost=152,591.71..522,319.05 rows=819,997 width=446) (actual time=1,472.345..15,482.422 rows=819,997 loops=1)

9. 8,306.933 15,251.276 ↑ 1.0 819,997 1

Hash Left Join (cost=152,591.71..514,119.08 rows=819,997 width=538) (actual time=1,472.345..15,251.276 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".tipodocumento_codigo = t_1.codigo)
10. 221.190 6,944.330 ↑ 1.0 819,997 1

Hash Left Join (cost=152,590.24..304,870.26 rows=819,997 width=364) (actual time=1,472.029..6,944.330 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".gruposcontas_codigo = grct.codigo)
11. 312.342 6,723.135 ↑ 1.0 819,997 1

Hash Left Join (cost=152,570.34..302,677.14 rows=819,997 width=246) (actual time=1,472.018..6,723.135 rows=819,997 loops=1)

  • Hash Cond: (cr_sit.situacoesconta_codigo = sc.codigo)
12. 360.261 6,410.772 ↑ 1.0 819,997 1

Hash Left Join (cost=152,550.66..300,483.75 rows=819,997 width=125) (actual time=1,471.988..6,410.772 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".clientes_codigo = c.codigo)
13. 917.497 6,045.613 ↑ 1.0 819,997 1

Hash Join (cost=151,258.67..297,038.64 rows=819,997 width=99) (actual time=1,467.038..6,045.613 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".prevendas_codigo = pv.codigo)
14. 784.745 4,837.994 ↑ 1.0 819,997 1

Hash Left Join (cost=126,546.57..243,791.03 rows=819,997 width=91) (actual time=1,176.582..4,837.994 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_sit.contasareceber_codigo)
15. 726.616 3,895.671 ↑ 1.0 819,997 1

Hash Join (cost=101,262.71..190,728.67 rows=819,997 width=87) (actual time=1,018.660..3,895.671 rows=819,997 loops=1)

  • Hash Cond: ("*SELECT* 1_1".codigo = cr_fat.contasareceber_codigo)
16. 46.466 2,916.617 ↑ 1.0 819,997 1

Append (cost=74,385.65..136,073.10 rows=819,997 width=87) (actual time=765.815..2,916.617 rows=819,997 loops=1)

17. 118.502 2,870.151 ↑ 1.0 819,997 1

Subquery Scan on *SELECT* 1_1 (cost=74,385.65..131,973.12 rows=819,997 width=87) (actual time=765.814..2,870.151 rows=819,997 loops=1)

18. 1,044.912 2,751.649 ↑ 1.0 819,997 1

Hash Join (cost=74,385.65..123,773.15 rows=819,997 width=168) (actual time=765.813..2,751.649 rows=819,997 loops=1)

  • Hash Cond: (pvpg_cr.contasareceber_codigo = cr.codigo)
19. 416.873 1,294.557 ↑ 1.0 819,997 1

Hash Join (cost=40,879.79..73,699.79 rows=819,997 width=12) (actual time=353.400..1,294.557 rows=819,997 loops=1)

  • Hash Cond: (pvpg.codprevenda = pv_1.codigo)
20. 432.961 680.810 ↑ 1.0 819,997 1

Hash Join (cost=16,639.69..39,012.18 rows=819,997 width=8) (actual time=154.762..680.810 rows=819,997 loops=1)

  • Hash Cond: (pvpg_cr.prevendas_pagtos_codigo = pvpg.codigo)
21. 93.439 93.439 ↑ 1.0 819,997 1

Seq Scan on prevendas_pagtos_contasareceber pvpg_cr (cost=0.00..11,828.97 rows=819,997 width=8) (actual time=0.015..93.439 rows=819,997 loops=1)

22. 79.565 154.410 ↑ 1.0 507,453 1

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

  • Buckets: 131072 Batches: 8 Memory Usage: 3498kB
23. 74.845 74.845 ↑ 1.0 507,453 1

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

  • Filter: (codprevenda IS NOT NULL)
24. 79.067 196.874 ↑ 1.0 483,071 1

Hash (cost=16,314.71..16,314.71 rows=483,071 width=8) (actual time=196.874..196.874 rows=483,071 loops=1)

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

Seq Scan on prevendas pv_1 (cost=0.00..16,314.71 rows=483,071 width=8) (actual time=0.025..117.807 rows=483,071 loops=1)

26. 206.422 412.180 ↓ 1.0 820,039 1

Hash (cost=16,848.38..16,848.38 rows=820,038 width=35) (actual time=412.180..412.180 rows=820,039 loops=1)

  • Buckets: 65536 Batches: 32 Memory Usage: 2160kB
27. 205.758 205.758 ↓ 1.0 820,039 1

Seq Scan on contasareceber cr (cost=0.00..16,848.38 rows=820,038 width=35) (actual time=0.027..205.758 rows=820,039 loops=1)

28. 118.958 252.438 ↓ 1.0 820,004 1

Hash (cost=13,423.03..13,423.03 rows=820,003 width=4) (actual time=252.438..252.438 rows=820,004 loops=1)

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

Seq Scan on contasareceber_faturamentos cr_fat (cost=0.00..13,423.03 rows=820,003 width=4) (actual time=0.036..133.480 rows=820,004 loops=1)

  • Filter: (contasareceber_codigo IS NOT NULL)
30. 101.322 157.578 ↓ 1.0 820,039 1

Hash (cost=11,829.38..11,829.38 rows=820,038 width=8) (actual time=157.578..157.578 rows=820,039 loops=1)

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

Seq Scan on contasareceber_situacao cr_sit (cost=0.00..11,829.38 rows=820,038 width=8) (actual time=0.017..56.256 rows=820,039 loops=1)

32. 95.815 290.122 ↑ 1.0 483,071 1

Hash (cost=16,314.71..16,314.71 rows=483,071 width=12) (actual time=290.122..290.122 rows=483,071 loops=1)

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

Seq Scan on prevendas pv (cost=0.00..16,314.71 rows=483,071 width=12) (actual time=0.050..194.307 rows=483,071 loops=1)

34. 2.199 4.898 ↑ 1.0 14,622 1

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

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

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

36. 0.007 0.021 ↑ 71.7 6 1

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

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

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

38. 0.000 0.005 ↓ 0.0 0 1

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

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

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

40. 0.004 0.013 ↓ 1.0 22 1

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

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

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

42. 0.001 0.630 ↓ 0.0 0 1

Subquery Scan on *SELECT* 2 (cost=1,296.31..71,946.14 rows=2,260 width=446) (actual time=0.630..0.630 rows=0 loops=1)

43. 0.001 0.629 ↓ 0.0 0 1

Nested Loop (cost=1,296.31..71,923.54 rows=2,260 width=538) (actual time=0.629..0.629 rows=0 loops=1)

44. 0.001 0.628 ↓ 0.0 0 1

Hash Left Join (cost=1,295.88..58,994.49 rows=2,260 width=434) (actual time=0.628..0.628 rows=0 loops=1)

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

Nested Loop Left Join (cost=1,294.41..58,986.97 rows=2,260 width=356) (actual time=0.627..0.627 rows=0 loops=1)

46. 0.000 0.627 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,294.26..58,570.25 rows=2,260 width=238) (actual time=0.627..0.627 rows=0 loops=1)

47. 0.000 0.627 ↓ 0.0 0 1

Nested Loop Left Join (cost=1,294.12..58,197.31 rows=2,260 width=117) (actual time=0.627..0.627 rows=0 loops=1)

48. 0.001 0.627 ↓ 0.0 0 1

Hash Left Join (cost=1,293.69..43,761.26 rows=2,260 width=113) (actual time=0.627..0.627 rows=0 loops=1)

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

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

50. 0.004 0.399 ↑ 64.6 35 1

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

51. 0.007 0.395 ↑ 64.6 35 1

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

52. 0.046 0.388 ↑ 64.6 35 1

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

53. 0.018 0.272 ↑ 64.6 35 1

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

54. 0.017 0.149 ↑ 64.6 35 1

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

55. 0.027 0.027 ↑ 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.022..0.027 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..7.15 rows=1 width=35) (actual time=0.003..0.003 rows=1 loops=35)

  • Index Cond: (codigo = snfpg_cr.contasareceber_codigo)
57. 0.105 0.105 ↑ 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.003..0.003 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.210 0.210 ↓ 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.006..0.006 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,109.22..1,109.22 rows=14,622 width=30) (never executed)

61. 0.000 0.000 ↓ 0.0 0

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

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.004 5.386 ↑ 2,573.0 12 1

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

69. 0.348 5.382 ↑ 2,573.0 12 1

Merge Right Join (cost=43,727.86..52,120.00 rows=30,876 width=538) (actual time=5.247..5.382 rows=12 loops=1)

  • Merge Cond: (cat.contasareceber_avulsas_codigo = "*SELECT* 3_1".contasareceber_avulsas_codigo)
70. 0.009 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.009 0.009 ↑ 390.0 2 1

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

72. 0.010 5.016 ↑ 719.7 11 1

Materialize (cost=43,672.59..43,821.29 rows=7,917 width=438) (actual time=5.002..5.016 rows=11 loops=1)

73. 0.009 5.006 ↑ 879.7 9 1

Merge Left Join (cost=43,672.59..43,801.50 rows=7,917 width=438) (actual time=4.999..5.006 rows=9 loops=1)

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

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

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

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

76. 0.007 4.873 ↑ 290.0 7 1

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

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

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

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

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

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

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

80. 0.001 0.044 ↑ 290.0 7 1

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

81. 0.002 0.043 ↑ 290.0 7 1

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

82. 0.011 0.041 ↑ 290.0 7 1

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

83. 0.009 0.009 ↑ 290.0 7 1

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

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

  • Index Cond: (codigo = crav.contasareceber_codigo)
85. 0.042 0.042 ↑ 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.006..0.006 rows=1 loops=7)

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

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

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

88. 0.000 0.009 ↓ 0.0 0 1

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

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

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

90. 0.010 0.019 ↓ 1.0 22 1

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

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

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

92. 0.007 0.084 ↑ 1.0 1 7

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

93. 0.070 0.070 ↑ 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.010..0.010 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.008 0.016 ↑ 86.7 9 1

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

  • Sort Key: cav.contasareceber_avulsas_codigo
  • Sort Method: quicksort Memory: 25kB
96. 0.008 0.008 ↑ 86.7 9 1

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

97. 0.011 0.025 ↑ 1.0 39 1

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

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

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

99. 0.009 288.211 ↑ 16,460.6 49 1

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

100. 137.831 288.202 ↑ 16,460.6 49 1

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

  • Sort Key: crpg.contasareceber_faturamentos_cr_codigo
  • Sort Method: external merge Disk: 17432kB
101. 150.371 150.371 ↑ 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.034..150.371 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 : 18.775 ms
Execution time : 17,474.052 ms