explain.depesz.com

PostgreSQL's explain analyze made readable

Result: wJpU

Settings
# exclusive inclusive rows x rows loops node
1. 624.349 7,759.573 ↓ 4.6 375,502 1

Hash Left Join (cost=3,531.06..8,891.40 rows=81,926 width=3,901) (actual time=54.055..7,759.573 rows=375,502 loops=1)

  • Hash Cond: ("ctsInsStatuses".ref_ins_statuses_id = "refInsStatuses".id)
2. 605.462 7,135.207 ↓ 4.6 375,502 1

Hash Left Join (cost=3,529.48..8,639.71 rows=81,926 width=3,789) (actual time=54.021..7,135.207 rows=375,502 loops=1)

  • Hash Cond: ("ctgtsFlTypes".ref_ctgts_fl_types_id = "refCtgtsFlTypes".id)
3. 586.525 6,529.739 ↓ 4.6 375,502 1

Hash Left Join (cost=3,528.41..8,119.77 rows=81,926 width=3,657) (actual time=53.999..6,529.739 rows=375,502 loops=1)

  • Hash Cond: (ctgts.ref_glbl_ctgts_type_id = "refGlblCtgtsType".id)
4. 590.833 5,943.208 ↓ 4.6 375,502 1

Hash Left Join (cost=3,527.34..7,599.83 rows=81,926 width=3,525) (actual time=53.978..5,943.208 rows=375,502 loops=1)

  • Hash Cond: ("ctgtsFlVers".ctgts_fl_data_name_id = "ctgtsFlDataName".id)
5. 555.572 5,350.809 ↓ 4.6 375,502 1

Hash Left Join (cost=3,306.49..7,163.76 rows=81,926 width=3,334) (actual time=52.372..5,350.809 rows=375,502 loops=1)

  • Hash Cond: ("ctgtsFlVers".ctgts_id = ctgts.id)
6. 588.166 4,793.301 ↓ 4.6 375,502 1

Hash Left Join (cost=3,127.91..6,769.95 rows=81,926 width=3,277) (actual time=50.393..4,793.301 rows=375,502 loops=1)

  • Hash Cond: ("ctsIns".id = "ctsIns_ctsInsSide".cts_ins_id)
7. 192.071 4,180.962 ↓ 4.3 135,786 1

Hash Left Join (cost=2,172.50..4,679.82 rows=31,546 width=2,971) (actual time=26.180..4,180.962 rows=135,786 loops=1)

  • Hash Cond: ("ctsIns_ctsInsStatuses".cts_ins_statuses_id = "ctsInsStatuses".id)
8. 164.088 3,979.286 ↓ 4.3 135,786 1

Hash Left Join (cost=1,450.54..3,875.04 rows=31,546 width=2,942) (actual time=16.556..3,979.286 rows=135,786 loops=1)

  • Hash Cond: ("ctsIns".id = "ctsIns_ctsInsStatuses".cts_ins_id)
9. 7.344 3,809.761 ↓ 2.0 5,619 1

Hash Left Join (cost=821.30..1,753.60 rows=2,827 width=2,938) (actual time=11.098..3,809.761 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".ref_ins_scan_check_error_id = "refInsScanCheckError".id)
10. 7.827 3,802.413 ↓ 2.0 5,619 1

Hash Left Join (cost=820.21..1,744.96 rows=2,827 width=2,837) (actual time=11.089..3,802.413 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".ref_ins_scan_check_status_id = "refInsScanCheckStatus".id)
11. 7.894 3,794.582 ↓ 2.0 5,619 1

Hash Left Join (cost=819.12..1,728.58 rows=2,827 width=2,736) (actual time=11.079..3,794.582 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".ref_cts_ins_doc_type_id = "refCtsInsDocType".id)
12. 7.674 3,786.674 ↓ 2.0 5,619 1

Hash Left Join (cost=817.17..1,718.47 rows=2,827 width=2,632) (actual time=11.059..3,786.674 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".ref_cts_ins_scan_type_id = "refCtsInsScanType".id)
13. 7.688 3,778.989 ↓ 2.0 5,619 1

Hash Left Join (cost=815.83..1,707.62 rows=2,827 width=2,520) (actual time=11.041..3,778.989 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".last_check_user_id = "lastCheckUser".id)
14. 8.207 3,770.882 ↓ 2.0 5,619 1

Hash Left Join (cost=788.14..1,672.46 rows=2,827 width=1,971) (actual time=10.608..3,770.882 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsScanCheck".cts_ins_scan_id = "ctsInsScan".id)
15. 5.857 3,758.338 ↓ 2.0 5,619 1

Hash Left Join (cost=348.53..1,225.43 rows=2,827 width=1,598) (actual time=6.263..3,758.338 rows=5,619 loops=1)

  • Hash Cond: ("ctsIns".ref_ins_scan_check_status_id = "ctsInsRefInsScanCheckStatus".id)
16. 7.183 3,752.477 ↓ 2.0 5,619 1

Hash Left Join (cost=347.44..1,212.39 rows=2,827 width=1,497) (actual time=6.253..3,752.477 rows=5,619 loops=1)

  • Hash Cond: ("ctsIns".user_id = "user".id)
17. 5.539 3,744.882 ↓ 2.0 5,619 1

Hash Left Join (cost=319.74..1,177.19 rows=2,827 width=948) (actual time=5.836..3,744.882 rows=5,619 loops=1)

  • Hash Cond: ("ctsIns".branch_id = branch.id)
18. 5.446 3,739.271 ↓ 2.0 5,619 1

Hash Left Join (cost=312.59..1,162.40 rows=2,827 width=810) (actual time=5.760..3,739.271 rows=5,619 loops=1)

  • Hash Cond: ("ctsIns".partner_id = partner.id)
19. 16.369 3,733.819 ↓ 2.0 5,619 1

Hash Left Join (cost=311.41..1,149.87 rows=2,827 width=415) (actual time=5.749..3,733.819 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsVers".cts_id = cts.id)
  • Filter: (SubPlan 1)
  • Rows Removed by Filter: 1475
20. 8.255 13.637 ↓ 1.3 7,094 1

Hash Right Join (cost=241.79..495.37 rows=5,655 width=358) (actual time=4.332..13.637 rows=7,094 loops=1)

  • Hash Cond: ("ctsInsScanCheck".cts_ins_id = "ctsIns".id)
21. 1.067 1.067 ↑ 1.0 5,748 1

Seq Scan on cts_ins_scans_check "ctsInsScanCheck" (cost=0.00..175.48 rows=5,748 width=115) (actual time=0.009..1.067 rows=5,748 loops=1)

22. 0.896 4.315 ↓ 1.0 2,092 1

Hash (cost=216.06..216.06 rows=2,058 width=243) (actual time=4.315..4.315 rows=2,092 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 510kB
23. 1.664 3.419 ↓ 1.0 2,092 1

Hash Left Join (cost=156.07..216.06 rows=2,058 width=243) (actual time=1.518..3.419 rows=2,092 loops=1)

  • Hash Cond: ("ctsInsVers".cts_ins_id = "ctsIns".id)
24. 0.251 0.251 ↓ 1.0 2,092 1

Seq Scan on cts_ins_vers "ctsInsVers" (cost=0.00..54.58 rows=2,058 width=99) (actual time=0.008..0.251 rows=2,092 loops=1)

25. 0.582 1.504 ↑ 1.0 2,092 1

Hash (cost=129.92..129.92 rows=2,092 width=144) (actual time=1.503..1.504 rows=2,092 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 318kB
26. 0.922 0.922 ↑ 1.0 2,092 1

Seq Scan on cts_ins "ctsIns" (cost=0.00..129.92 rows=2,092 width=144) (actual time=0.005..0.922 rows=2,092 loops=1)

27. 0.349 0.745 ↑ 1.0 2,092 1

Hash (cost=42.61..42.61 rows=2,161 width=57) (actual time=0.745..0.745 rows=2,092 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 202kB
28. 0.396 0.396 ↑ 1.0 2,092 1

Seq Scan on cts (cost=0.00..42.61 rows=2,161 width=57) (actual time=0.006..0.396 rows=2,092 loops=1)

29.          

SubPlan (for Hash Left Join)

30. 7.094 3,703.068 ↑ 1.5 4 7,094

Unique (cost=189.97..190.01 rows=6 width=16) (actual time=0.522..0.522 rows=4 loops=7,094)

31. 21.282 3,695.974 ↑ 2.0 4 7,094

Sort (cost=189.97..189.99 rows=8 width=16) (actual time=0.521..0.521 rows=4 loops=7,094)

  • Sort Key: "ctsInsScanCheck_1".ref_cts_ins_doc_type_id, "ctsInsScanCheck_1".check_finish_date DESC
  • Sort Method: quicksort Memory: 25kB
32. 3,674.692 3,674.692 ↑ 1.1 7 7,094

Seq Scan on cts_ins_scans_check "ctsInsScanCheck_1" (cost=0.00..189.85 rows=8 width=16) (actual time=0.245..0.518 rows=7 loops=7,094)

  • Filter: (cts_id = cts.id)
  • Rows Removed by Filter: 5741
33. 0.002 0.006 ↑ 1.0 8 1

Hash (cost=1.08..1.08 rows=8 width=395) (actual time=0.006..0.006 rows=8 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
34. 0.004 0.004 ↑ 1.0 8 1

Seq Scan on partners partner (cost=0.00..1.08 rows=8 width=395) (actual time=0.003..0.004 rows=8 loops=1)

35. 0.034 0.072 ↑ 1.0 140 1

Hash (cost=5.40..5.40 rows=140 width=138) (actual time=0.072..0.072 rows=140 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
36. 0.038 0.038 ↑ 1.0 140 1

Seq Scan on branches branch (cost=0.00..5.40 rows=140 width=138) (actual time=0.004..0.038 rows=140 loops=1)

37. 0.193 0.412 ↑ 1.0 431 1

Hash (cost=22.31..22.31 rows=431 width=549) (actual time=0.412..0.412 rows=431 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 146kB
38. 0.219 0.219 ↑ 1.0 431 1

Seq Scan on users "user" (cost=0.00..22.31 rows=431 width=549) (actual time=0.005..0.219 rows=431 loops=1)

39. 0.001 0.004 ↑ 1.0 4 1

Hash (cost=1.04..1.04 rows=4 width=101) (actual time=0.004..0.004 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
40. 0.003 0.003 ↑ 1.0 4 1

Seq Scan on ref_ins_scans_check_status "ctsInsRefInsScanCheckStatus" (cost=0.00..1.04 rows=4 width=101) (actual time=0.002..0.003 rows=4 loops=1)

41. 1.976 4.337 ↑ 1.0 6,407 1

Hash (cost=359.27..359.27 rows=6,427 width=373) (actual time=4.337..4.337 rows=6,407 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 2378kB
42. 2.361 2.361 ↑ 1.0 6,407 1

Seq Scan on cts_ins_scans "ctsInsScan" (cost=0.00..359.27 rows=6,427 width=373) (actual time=0.004..2.361 rows=6,407 loops=1)

43. 0.190 0.419 ↑ 1.0 431 1

Hash (cost=22.31..22.31 rows=431 width=549) (actual time=0.419..0.419 rows=431 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 146kB
44. 0.229 0.229 ↑ 1.0 431 1

Seq Scan on users "lastCheckUser" (cost=0.00..22.31 rows=431 width=549) (actual time=0.006..0.229 rows=431 loops=1)

45. 0.005 0.011 ↑ 1.0 15 1

Hash (cost=1.15..1.15 rows=15 width=112) (actual time=0.011..0.011 rows=15 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
46. 0.006 0.006 ↑ 1.0 15 1

Seq Scan on ref_cts_ins_scan_types "refCtsInsScanType" (cost=0.00..1.15 rows=15 width=112) (actual time=0.003..0.006 rows=15 loops=1)

47. 0.007 0.014 ↑ 1.0 42 1

Hash (cost=1.42..1.42 rows=42 width=104) (actual time=0.014..0.014 rows=42 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 14kB
48. 0.007 0.007 ↑ 1.0 42 1

Seq Scan on ref_cts_ins_docs_types "refCtsInsDocType" (cost=0.00..1.42 rows=42 width=104) (actual time=0.004..0.007 rows=42 loops=1)

49. 0.001 0.004 ↑ 1.0 4 1

Hash (cost=1.04..1.04 rows=4 width=101) (actual time=0.004..0.004 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
50. 0.003 0.003 ↑ 1.0 4 1

Seq Scan on ref_ins_scans_check_status "refInsScanCheckStatus" (cost=0.00..1.04 rows=4 width=101) (actual time=0.002..0.003 rows=4 loops=1)

51. 0.001 0.004 ↑ 1.0 4 1

Hash (cost=1.04..1.04 rows=4 width=101) (actual time=0.004..0.004 rows=4 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
52. 0.003 0.003 ↑ 1.0 4 1

Seq Scan on ref_ins_scans_check_errors "refInsScanCheckError" (cost=0.00..1.04 rows=4 width=101) (actual time=0.002..0.003 rows=4 loops=1)

53. 3.277 5.437 ↓ 1.0 23,378 1

Hash (cost=337.44..337.44 rows=23,344 width=8) (actual time=5.437..5.437 rows=23,378 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 1170kB
54. 2.160 2.160 ↓ 1.0 23,378 1

Seq Scan on cts_ins_statuses_vers "ctsIns_ctsInsStatuses" (cost=0.00..337.44 rows=23,344 width=8) (actual time=0.005..2.160 rows=23,378 loops=1)

55. 4.628 9.605 ↑ 1.0 23,378 1

Hash (cost=428.65..428.65 rows=23,465 width=33) (actual time=9.605..9.605 rows=23,378 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 1852kB
56. 4.977 4.977 ↑ 1.0 23,378 1

Seq Scan on cts_ins_statuses "ctsInsStatuses" (cost=0.00..428.65 rows=23,465 width=33) (actual time=0.011..4.977 rows=23,378 loops=1)

57. 3.243 24.173 ↓ 1.0 5,535 1

Hash (cost=887.50..887.50 rows=5,433 width=310) (actual time=24.173..24.173 rows=5,535 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 1341kB
58. 2.909 20.930 ↓ 1.0 5,535 1

Hash Left Join (cost=670.17..887.50 rows=5,433 width=310) (actual time=7.856..20.930 rows=5,535 loops=1)

  • Hash Cond: ("ctgtsFlVers_ctgtsFlTypes".ctgts_fl_types_id = "ctgtsFlTypes".id)
59. 2.845 16.676 ↓ 1.0 5,535 1

Hash Left Join (cost=511.99..715.04 rows=5,433 width=266) (actual time=6.478..16.676 rows=5,535 loops=1)

  • Hash Cond: ("ctgtsFlVers".id = "ctgtsFlVers_ctgtsFlTypes".ctgts_fl_vers_id)
60. 3.061 12.477 ↓ 1.0 5,535 1

Hash Left Join (cost=364.75..494.44 rows=5,433 width=262) (actual time=5.081..12.477 rows=5,535 loops=1)

  • Hash Cond: ("ctsInsSide".ctgts_fl_vers_id = "ctgtsFlVers".id)
61. 1.853 5.828 ↓ 1.0 5,535 1

Hash Left Join (cost=157.42..272.84 rows=5,433 width=128) (actual time=1.453..5.828 rows=5,535 loops=1)

  • Hash Cond: ("ctsInsSide".ref_cts_ins_sides_type_id = "refCtsInsSidesType".id)
62. 2.037 3.969 ↓ 1.0 5,535 1

Hash Left Join (cost=156.24..249.85 rows=5,433 width=28) (actual time=1.435..3.969 rows=5,535 loops=1)

  • Hash Cond: ("ctsIns_ctsInsSide".cts_ins_sides_id = "ctsInsSide".id)
63. 0.537 0.537 ↓ 1.0 5,535 1

Seq Scan on cts_ins_sides_vers "ctsIns_ctsInsSide" (cost=0.00..79.33 rows=5,433 width=8) (actual time=0.006..0.537 rows=5,535 loops=1)

64. 0.859 1.395 ↓ 1.0 5,535 1

Hash (cost=88.33..88.33 rows=5,433 width=24) (actual time=1.395..1.395 rows=5,535 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 340kB
65. 0.536 0.536 ↓ 1.0 5,535 1

Seq Scan on cts_ins_sides "ctsInsSide" (cost=0.00..88.33 rows=5,433 width=24) (actual time=0.004..0.536 rows=5,535 loops=1)

66. 0.003 0.006 ↑ 1.0 8 1

Hash (cost=1.08..1.08 rows=8 width=100) (actual time=0.006..0.006 rows=8 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
67. 0.003 0.003 ↑ 1.0 8 1

Seq Scan on ref_cts_ins_sides_types "refCtsInsSidesType" (cost=0.00..1.08 rows=8 width=100) (actual time=0.003..0.003 rows=8 loops=1)

68. 1.618 3.588 ↑ 1.0 5,536 1

Hash (cost=137.70..137.70 rows=5,570 width=134) (actual time=3.588..3.588 rows=5,536 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 726kB
69. 1.970 1.970 ↑ 1.0 5,536 1

Seq Scan on ctgts_fl_vers "ctgtsFlVers" (cost=0.00..137.70 rows=5,570 width=134) (actual time=0.005..1.970 rows=5,536 loops=1)

70. 0.844 1.354 ↓ 1.0 5,535 1

Hash (cost=79.33..79.33 rows=5,433 width=8) (actual time=1.354..1.354 rows=5,535 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 281kB
71. 0.510 0.510 ↓ 1.0 5,535 1

Seq Scan on ctgts_fl_types_vers "ctgtsFlVers_ctgtsFlTypes" (cost=0.00..79.33 rows=5,433 width=8) (actual time=0.006..0.510 rows=5,535 loops=1)

72. 0.833 1.345 ↑ 1.0 5,535 1

Hash (cost=88.08..88.08 rows=5,608 width=48) (actual time=1.345..1.345 rows=5,535 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 329kB
73. 0.512 0.512 ↑ 1.0 5,535 1

Seq Scan on ctgts_fl_types "ctgtsFlTypes" (cost=0.00..88.08 rows=5,608 width=48) (actual time=0.005..0.512 rows=5,535 loops=1)

74. 1.011 1.936 ↑ 1.0 5,536 1

Hash (cost=109.37..109.37 rows=5,537 width=57) (actual time=1.936..1.936 rows=5,536 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 510kB
75. 0.925 0.925 ↑ 1.0 5,536 1

Seq Scan on ctgts (cost=0.00..109.37 rows=5,537 width=57) (actual time=0.007..0.925 rows=5,536 loops=1)

76. 1.011 1.566 ↑ 1.0 5,535 1

Hash (cost=151.49..151.49 rows=5,549 width=191) (actual time=1.566..1.566 rows=5,535 loops=1)

  • Buckets: 8192 Batches: 1 Memory Usage: 819kB
77. 0.555 0.555 ↑ 1.0 5,535 1

Seq Scan on ctgts_fl_data_names "ctgtsFlDataName" (cost=0.00..151.49 rows=5,549 width=191) (actual time=0.004..0.555 rows=5,535 loops=1)

78. 0.003 0.006 ↑ 1.0 3 1

Hash (cost=1.03..1.03 rows=3 width=132) (actual time=0.005..0.006 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
79. 0.003 0.003 ↑ 1.0 3 1

Seq Scan on ref_glbl_ctgts_types "refGlblCtgtsType" (cost=0.00..1.03 rows=3 width=132) (actual time=0.003..0.003 rows=3 loops=1)

80. 0.003 0.006 ↑ 1.0 3 1

Hash (cost=1.03..1.03 rows=3 width=132) (actual time=0.006..0.006 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
81. 0.003 0.003 ↑ 1.0 3 1

Seq Scan on ref_ctgts_fl_types "refCtgtsFlTypes" (cost=0.00..1.03 rows=3 width=132) (actual time=0.003..0.003 rows=3 loops=1)

82. 0.009 0.017 ↑ 1.0 26 1

Hash (cost=1.26..1.26 rows=26 width=112) (actual time=0.017..0.017 rows=26 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
83. 0.008 0.008 ↑ 1.0 26 1

Seq Scan on ref_ins_statuses "refInsStatuses" (cost=0.00..1.26 rows=26 width=112) (actual time=0.003..0.008 rows=26 loops=1)

Planning time : 8.821 ms
Execution time : 7,777.284 ms