explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ra9W

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19. 2.239 10.658 ↓ 1.0 2,092 1

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

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

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

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

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

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

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

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

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

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

25. 0.734 1.707 ↑ 1.0 2,092 1

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

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

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

27. 0.006 0.010 ↑ 1.0 8 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
28. 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)

29. 0.060 0.101 ↑ 1.0 140 1

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

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

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

31. 0.003 0.006 ↑ 1.0 4 1

Hash (cost=1.04..1.04 rows=4 width=101) (actual time=0.006..0.006 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.424 0.814 ↑ 1.0 2,092 1

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

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

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

35.          

SubPlan (for Hash Left Join)

36. 7.094 78.034 ↑ 1.5 4 7,094

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

37. 28.376 70.940 ↑ 2.0 4 7,094

Sort (cost=30.32..30.34 rows=8 width=16) (actual time=0.009..0.010 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.004..0.006 rows=7 loops=7,094)

  • Recheck Cond: (cts_id = cts.id)
  • Heap Blocks: exact=23210
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.287 0.541 ↑ 1.0 431 1

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

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

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

42. 2.898 5.297 ↑ 1.0 6,407 1

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

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

44. 0.261 0.487 ↑ 1.0 431 1

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

  • Buckets: 1024 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.006..0.226 rows=431 loops=1)

46. 0.009 0.026 ↑ 1.0 15 1

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

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

48. 0.010 0.017 ↑ 1.0 42 1

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

  • Buckets: 1024 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: 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.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: 1024 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.710 5.928 ↓ 1.0 23,378 1

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

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

56. 4.942 9.954 ↑ 1.0 23,378 1

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

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

58. 3.296 25.079 ↓ 1.0 5,535 1

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

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

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

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

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

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

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

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

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

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

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

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

65. 0.889 1.440 ↓ 1.0 5,535 1

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

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

67. 0.005 0.009 ↑ 1.0 8 1

Hash (cost=1.08..1.08 rows=8 width=100) (actual time=0.009..0.009 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. 1.602 3.648 ↑ 1.0 5,536 1

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

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

71. 0.894 1.445 ↓ 1.0 5,535 1

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

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

73. 0.870 1.411 ↑ 1.0 5,535 1

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

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

75. 1.010 1.958 ↑ 1.0 5,536 1

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

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

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

77. 1.153 1.773 ↑ 1.0 5,535 1

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

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

79. 0.005 0.009 ↑ 1.0 3 1

Hash (cost=1.03..1.03 rows=3 width=132) (actual time=0.009..0.009 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.004..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.003..0.003 rows=3 loops=1)

83. 0.011 0.036 ↑ 1.0 26 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
84. 0.025 0.025 ↑ 1.0 26 1

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

Planning time : 9.348 ms
Execution time : 4,152.056 ms