explain.depesz.com

PostgreSQL's explain analyze made readable

Result: JH8e

Settings
# exclusive inclusive rows x rows loops node
1. 607.376 4,035.525 ↓ 4.6 375,502 1

Hash Left Join (cost=3,551.64..8,402.08 rows=81,926 width=3,901) (actual time=67.304..4,035.525 rows=375,502 loops=1)

  • Hash Cond: ("ctsInsStatuses".ref_ins_statuses_id = "refInsStatuses".id)
2. 585.756 3,428.131 ↓ 4.6 375,502 1

Hash Left Join (cost=3,550.06..8,150.38 rows=81,926 width=3,789) (actual time=67.267..3,428.131 rows=375,502 loops=1)

  • Hash Cond: ("ctgtsFlTypes".ref_ctgts_fl_types_id = "refCtgtsFlTypes".id)
3. 573.375 2,842.369 ↓ 4.6 375,502 1

Hash Left Join (cost=3,548.99..7,630.45 rows=81,926 width=3,657) (actual time=67.245..2,842.369 rows=375,502 loops=1)

  • Hash Cond: (ctgts.ref_glbl_ctgts_type_id = "refGlblCtgtsType".id)
4. 586.439 2,268.989 ↓ 4.6 375,502 1

Hash Left Join (cost=3,547.92..7,110.51 rows=81,926 width=3,525) (actual time=67.221..2,268.989 rows=375,502 loops=1)

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

Hash Left Join (cost=3,327.07..6,674.43 rows=81,926 width=3,334) (actual time=65.438..1,680.809 rows=375,502 loops=1)

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

Hash Left Join (cost=3,148.49..6,280.63 rows=81,926 width=3,277) (actual time=63.315..1,136.451 rows=375,502 loops=1)

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

Hash Left Join (cost=2,193.08..4,190.50 rows=31,546 width=2,971) (actual time=37.119..529.891 rows=135,786 loops=1)

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

Hash Left Join (cost=1,473.07..3,387.67 rows=31,546 width=2,942) (actual time=26.590..331.234 rows=135,786 loops=1)

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

Hash Left Join (cost=843.83..1,266.24 rows=2,827 width=2,938) (actual time=20.221..164.283 rows=5,619 loops=1)

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

Hash Left Join (cost=842.74..1,257.59 rows=2,827 width=2,837) (actual time=20.197..157.356 rows=5,619 loops=1)

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

Hash Left Join (cost=841.65..1,241.22 rows=2,827 width=2,736) (actual time=20.174..150.130 rows=5,619 loops=1)

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

Hash Left Join (cost=839.71..1,231.10 rows=2,827 width=2,632) (actual time=20.142..142.891 rows=5,619 loops=1)

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

Hash Left Join (cost=838.37..1,220.25 rows=2,827 width=2,520) (actual time=20.108..135.749 rows=5,619 loops=1)

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

Hash Left Join (cost=810.67..1,185.09 rows=2,827 width=1,971) (actual time=19.611..128.334 rows=5,619 loops=1)

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

Hash Left Join (cost=371.07..738.06 rows=2,827 width=1,598) (actual time=13.278..114.552 rows=5,619 loops=1)

  • Hash Cond: ("ctsIns".user_id = "user".id)
16. 12.844 107.163 ↓ 2.0 5,619 1

Hash Left Join (cost=343.37..702.87 rows=2,827 width=1,049) (actual time=12.747..107.163 rows=5,619 loops=1)

  • Hash Cond: ("ctsInsVers".cts_id = cts.id)
  • Filter: (SubPlan 1)
  • Rows Removed by Filter: 1,475
17. 9.725 22.557 ↓ 1.3 7,094 1

Hash Right Join (cost=273.75..527.33 rows=5,655 width=992) (actual time=11.835..22.557 rows=7,094 loops=1)

  • Hash Cond: ("ctsInsScanCheck".cts_ins_id = "ctsIns".id)
18. 1.041 1.041 ↑ 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.008..1.041 rows=5,748 loops=1)

19. 2.459 11.791 ↓ 1.0 2,092 1

Hash (cost=248.02..248.02 rows=2,058 width=877) (actual time=11.791..11.791 rows=2,092 loops=1)

  • Buckets: 4,096 Batches: 1 Memory Usage: 1,221kB
20. 1.613 9.332 ↓ 1.0 2,092 1

Hash Left Join (cost=165.49..248.02 rows=2,058 width=877) (actual time=2.220..9.332 rows=2,092 loops=1)

  • Hash Cond: ("ctsIns".ref_ins_scan_check_status_id = "ctsInsRefInsScanCheckStatus".id)
21. 1.659 7.708 ↓ 1.0 2,092 1

Hash Left Join (cost=164.40..238.22 rows=2,058 width=776) (actual time=2.189..7.708 rows=2,092 loops=1)

  • Hash Cond: ("ctsIns".branch_id = branch.id)
22. 1.659 5.937 ↓ 1.0 2,092 1

Hash Left Join (cost=157.25..225.50 rows=2,058 width=638) (actual time=2.061..5.937 rows=2,092 loops=1)

  • Hash Cond: ("ctsIns".partner_id = partner.id)
23. 1.940 4.261 ↓ 1.0 2,092 1

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

  • Hash Cond: ("ctsInsVers".cts_ins_id = "ctsIns".id)
24. 0.327 0.327 ↓ 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.009..0.327 rows=2,092 loops=1)

25. 0.861 1.994 ↑ 1.0 2,092 1

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

  • Buckets: 4,096 Batches: 1 Memory Usage: 318kB
26. 1.133 1.133 ↑ 1.0 2,092 1

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

27. 0.007 0.017 ↑ 1.0 8 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
28. 0.010 0.010 ↑ 1.0 8 1

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

29. 0.060 0.112 ↑ 1.0 140 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 33kB
30. 0.052 0.052 ↑ 1.0 140 1

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

31. 0.004 0.011 ↑ 1.0 4 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
32. 0.007 0.007 ↑ 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.007..0.007 rows=4 loops=1)

33. 0.426 0.822 ↑ 1.0 2,092 1

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

  • Buckets: 4,096 Batches: 1 Memory Usage: 202kB
34. 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)

35.          

SubPlan (for Hash Left Join)

36. 7.094 70.940 ↑ 1.5 4 7,094

Unique (cost=30.32..30.36 rows=6 width=16) (actual time=0.009..0.010 rows=4 loops=7,094)

37. 21.282 63.846 ↑ 2.0 4 7,094

Sort (cost=30.32..30.34 rows=8 width=16) (actual time=0.009..0.009 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
38. 28.376 42.564 ↑ 1.1 7 7,094

Bitmap Heap Scan on cts_ins_scans_check "ctsInsScanCheck_1" (cost=4.34..30.20 rows=8 width=16) (actual time=0.003..0.006 rows=7 loops=7,094)

  • Recheck Cond: (cts_id = cts.id)
  • Heap Blocks: exact=23,210
39. 14.188 14.188 ↑ 1.1 7 7,094

Bitmap Index Scan on "IDX_98447750d13acac627ac3caedd" (cost=0.00..4.34 rows=8 width=0) (actual time=0.002..0.002 rows=7 loops=7,094)

  • Index Cond: (cts_id = cts.id)
40. 0.272 0.515 ↑ 1.0 431 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 146kB
41. 0.243 0.243 ↑ 1.0 431 1

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

42. 3.454 6.274 ↑ 1.0 6,407 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 2,378kB
43. 2.820 2.820 ↑ 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.820 rows=6,407 loops=1)

44. 0.252 0.478 ↑ 1.0 431 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 146kB
45. 0.226 0.226 ↑ 1.0 431 1

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

46. 0.008 0.016 ↑ 1.0 15 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
47. 0.008 0.008 ↑ 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.005..0.008 rows=15 loops=1)

48. 0.009 0.016 ↑ 1.0 42 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 14kB
49. 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.003..0.007 rows=42 loops=1)

50. 0.002 0.005 ↑ 1.0 4 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
51. 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)

52. 0.004 0.008 ↑ 1.0 4 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
53. 0.004 0.004 ↑ 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.003..0.004 rows=4 loops=1)

54. 3.889 6.244 ↓ 1.0 23,378 1

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

  • Buckets: 32,768 Batches: 1 Memory Usage: 1,170kB
55. 2.355 2.355 ↓ 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.006..2.355 rows=23,378 loops=1)

56. 5.117 10.398 ↑ 1.0 23,378 1

Hash (cost=427.78..427.78 rows=23,378 width=33) (actual time=10.398..10.398 rows=23,378 loops=1)

  • Buckets: 32,768 Batches: 1 Memory Usage: 1,852kB
57. 5.281 5.281 ↑ 1.0 23,378 1

Seq Scan on cts_ins_statuses "ctsInsStatuses" (cost=0.00..427.78 rows=23,378 width=33) (actual time=0.007..5.281 rows=23,378 loops=1)

58. 3.518 26.153 ↓ 1.0 5,535 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 1,341kB
59. 3.177 22.635 ↓ 1.0 5,535 1

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

  • Hash Cond: ("ctgtsFlVers_ctgtsFlTypes".ctgts_fl_types_id = "ctgtsFlTypes".id)
60. 3.186 18.109 ↓ 1.0 5,535 1

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

  • Hash Cond: ("ctgtsFlVers".id = "ctgtsFlVers_ctgtsFlTypes".ctgts_fl_vers_id)
61. 3.459 13.586 ↓ 1.0 5,535 1

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

  • Hash Cond: ("ctsInsSide".ctgts_fl_vers_id = "ctgtsFlVers".id)
62. 1.976 6.414 ↓ 1.0 5,535 1

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

  • Hash Cond: ("ctsInsSide".ref_cts_ins_sides_type_id = "refCtsInsSidesType".id)
63. 2.375 4.426 ↓ 1.0 5,535 1

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

  • Hash Cond: ("ctsIns_ctsInsSide".cts_ins_sides_id = "ctsInsSide".id)
64. 0.590 0.590 ↓ 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.011..0.590 rows=5,535 loops=1)

65. 0.924 1.461 ↓ 1.0 5,535 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 340kB
66. 0.537 0.537 ↓ 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.537 rows=5,535 loops=1)

67. 0.008 0.012 ↑ 1.0 8 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
68. 0.004 0.004 ↑ 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.004 rows=8 loops=1)

69. 1.651 3.713 ↑ 1.0 5,536 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 726kB
70. 2.062 2.062 ↑ 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.006..2.062 rows=5,536 loops=1)

71. 0.825 1.337 ↓ 1.0 5,535 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 281kB
72. 0.512 0.512 ↓ 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.512 rows=5,535 loops=1)

73. 0.833 1.349 ↑ 1.0 5,535 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 329kB
74. 0.516 0.516 ↑ 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.516 rows=5,535 loops=1)

75. 1.078 2.078 ↑ 1.0 5,536 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 510kB
76. 1.000 1.000 ↑ 1.0 5,536 1

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

77. 1.132 1.741 ↑ 1.0 5,535 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 819kB
78. 0.609 0.609 ↑ 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.609 rows=5,535 loops=1)

79. 0.002 0.005 ↑ 1.0 3 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
80. 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.002..0.003 rows=3 loops=1)

81. 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: 1,024 Batches: 1 Memory Usage: 9kB
82. 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.002..0.003 rows=3 loops=1)

83. 0.009 0.018 ↑ 1.0 26 1

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 11kB
84. 0.009 0.009 ↑ 1.0 26 1

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

Planning time : 12.966 ms
Execution time : 4,053.433 ms