explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 4xx2

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

Hash Left Join (cost=3,553.60..8,404.03 rows=81,926 width=3,901) (actual time=82.875..4,999.235 rows=375,502 loops=1)

  • Hash Cond: ("ctsInsStatuses".ref_ins_statuses_id = "refInsStatuses".id)
2. 728.245 4,234.529 ↓ 4.6 375,502 1

Hash Left Join (cost=3,552.02..8,152.34 rows=81,926 width=3,789) (actual time=82.831..4,234.529 rows=375,502 loops=1)

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

Hash Left Join (cost=3,550.95..7,632.40 rows=81,926 width=3,657) (actual time=82.805..3,506.277 rows=375,502 loops=1)

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

Hash Left Join (cost=3,549.88..7,112.47 rows=81,926 width=3,525) (actual time=82.770..2,787.241 rows=375,502 loops=1)

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

Hash Left Join (cost=3,329.03..6,676.39 rows=81,926 width=3,334) (actual time=80.664..2,067.751 rows=375,502 loops=1)

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

Hash Left Join (cost=3,150.45..6,282.59 rows=81,926 width=3,277) (actual time=77.978..1,402.503 rows=375,502 loops=1)

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

Hash Left Join (cost=2,195.04..4,192.46 rows=31,546 width=2,971) (actual time=45.413..663.170 rows=135,786 loops=1)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19. 2.833 13.673 ↓ 1.0 2,092 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 1221kB
20. 1.994 10.840 ↓ 1.0 2,092 1

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

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

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

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

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

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

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

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

25. 0.959 2.229 ↑ 1.0 2,092 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 318kB
26. 1.270 1.270 ↑ 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.270 rows=2,092 loops=1)

27. 0.014 0.019 ↑ 1.0 8 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
28. 0.005 0.005 ↑ 1.0 8 1

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

29. 0.063 0.114 ↑ 1.0 140 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
30. 0.051 0.051 ↑ 1.0 140 1

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

31. 0.004 0.007 ↑ 1.0 4 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
32. 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.003..0.003 rows=4 loops=1)

33. 0.569 1.101 ↑ 1.0 2,092 1

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

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

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

35.          

SubPlan (for Hash Left Join)

36. 7.094 92.222 ↑ 1.5 4 7,094

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

37. 35.470 85.128 ↑ 2.0 4 7,094

Sort (cost=30.32..30.34 rows=8 width=16) (actual time=0.011..0.012 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 49.658 ↑ 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.004..0.007 rows=7 loops=7,094)

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

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 146kB
41. 0.298 0.298 ↑ 1.0 431 1

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

42. 3.943 7.056 ↑ 1.0 6,407 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 2378kB
43. 3.113 3.113 ↑ 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.005..3.113 rows=6,407 loops=1)

44. 0.340 0.631 ↑ 1.0 431 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 146kB
45. 0.291 0.291 ↑ 1.0 431 1

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

46. 0.010 0.020 ↑ 1.0 15 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
47. 0.010 0.010 ↑ 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.006..0.010 rows=15 loops=1)

48. 0.014 0.022 ↑ 1.0 42 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 14kB
49. 0.008 0.008 ↑ 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.008 rows=42 loops=1)

50. 0.004 0.007 ↑ 1.0 4 1

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

  • Buckets: 1024 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.003..0.003 rows=4 loops=1)

52. 0.005 0.010 ↑ 1.0 4 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
53. 0.005 0.005 ↑ 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.004..0.005 rows=4 loops=1)

54. 4.904 7.814 ↓ 1.0 23,378 1

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

  • Buckets: 32768 Batches: 1 Memory Usage: 1170kB
55. 2.910 2.910 ↓ 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.007..2.910 rows=23,378 loops=1)

56. 6.887 13.743 ↑ 1.0 23,378 1

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

  • Buckets: 32768 Batches: 1 Memory Usage: 1852kB
57. 6.856 6.856 ↑ 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.008..6.856 rows=23,378 loops=1)

58. 4.260 32.503 ↓ 1.0 5,535 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 1341kB
59. 3.922 28.243 ↓ 1.0 5,535 1

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

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

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

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

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

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

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

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

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

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

65. 1.176 1.871 ↓ 1.0 5,535 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 340kB
66. 0.695 0.695 ↓ 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.006..0.695 rows=5,535 loops=1)

67. 0.006 0.010 ↑ 1.0 8 1

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

  • Buckets: 1024 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. 2.057 4.683 ↑ 1.0 5,536 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 726kB
70. 2.626 2.626 ↑ 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.007..2.626 rows=5,536 loops=1)

71. 1.108 1.785 ↓ 1.0 5,535 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 281kB
72. 0.677 0.677 ↓ 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.008..0.677 rows=5,535 loops=1)

73. 1.127 1.816 ↑ 1.0 5,535 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 329kB
74. 0.689 0.689 ↑ 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.006..0.689 rows=5,535 loops=1)

75. 1.371 2.632 ↑ 1.0 5,536 1

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

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

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

77. 1.335 2.056 ↑ 1.0 5,535 1

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

  • Buckets: 8192 Batches: 1 Memory Usage: 819kB
78. 0.721 0.721 ↑ 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.005..0.721 rows=5,535 loops=1)

79. 0.002 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
80. 0.004 0.004 ↑ 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.004 rows=3 loops=1)

81. 0.004 0.007 ↑ 1.0 3 1

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

  • Buckets: 1024 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.010 0.021 ↑ 1.0 26 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
84. 0.011 0.011 ↑ 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.011 rows=26 loops=1)

Planning time : 11.786 ms
Execution time : 5,020.843 ms