explain.depesz.com

PostgreSQL's explain analyze made readable

Result: R3Wl

Settings
# exclusive inclusive rows x rows loops node
1. 0.137 3.390 ↑ 1.0 11 1

Sort (cost=143.65..143.68 rows=11 width=16,528) (actual time=3.388..3.390 rows=11 loops=1)

  • Sort Key: pait.lft
  • Sort Method: quicksort Memory: 40kB
2. 0.112 3.253 ↑ 1.0 11 1

Nested Loop Left Join (cost=51.07..143.46 rows=11 width=16,528) (actual time=0.947..3.253 rows=11 loops=1)

3. 0.127 3.053 ↓ 11.0 11 1

Nested Loop Left Join (cost=46.39..127.64 rows=1 width=14,936) (actual time=0.908..3.053 rows=11 loops=1)

  • Join Filter: ("quotationCurrencyLocales"."currencyId" = "quotationCurrency".id)
  • Rows Removed by Join Filter: 32
4. 0.106 2.904 ↓ 11.0 11 1

Nested Loop Left Join (cost=46.39..114.72 rows=1 width=14,380) (actual time=0.890..2.904 rows=11 loops=1)

5. 0.084 2.765 ↓ 11.0 11 1

Nested Loop Left Join (cost=46.26..113.96 rows=1 width=10,732) (actual time=0.872..2.765 rows=11 loops=1)

6. 0.087 2.648 ↓ 11.0 11 1

Nested Loop Left Join (cost=46.14..113.37 rows=1 width=10,504) (actual time=0.851..2.648 rows=11 loops=1)

7. 0.087 2.528 ↓ 11.0 11 1

Nested Loop Left Join (cost=46.00..112.95 rows=1 width=10,341) (actual time=0.828..2.528 rows=11 loops=1)

8. 0.082 2.408 ↓ 11.0 11 1

Nested Loop Left Join (cost=45.87..112.51 rows=1 width=10,180) (actual time=0.803..2.408 rows=11 loops=1)

9. 0.074 2.304 ↓ 11.0 11 1

Nested Loop Left Join (cost=45.73..111.25 rows=1 width=9,544) (actual time=0.781..2.304 rows=11 loops=1)

10. 0.095 2.153 ↓ 11.0 11 1

Nested Loop Left Join (cost=45.44..108.29 rows=1 width=8,775) (actual time=0.758..2.153 rows=11 loops=1)

  • Join Filter: ("parentItemCategoryLocales"."itemCategoryId" = "parentItemCategory".id)
  • Rows Removed by Join Filter: 61
11. 0.098 2.025 ↓ 11.0 11 1

Nested Loop Left Join (cost=45.44..107.18 rows=1 width=8,725) (actual time=0.742..2.025 rows=11 loops=1)

  • Join Filter: ("parentItemCategory".id = "parentItem"."itemCategoryId")
  • Rows Removed by Join Filter: 52
12. 0.096 1.861 ↓ 11.0 11 1

Nested Loop Left Join (cost=45.44..106.09 rows=1 width=8,579) (actual time=0.725..1.861 rows=11 loops=1)

13. 0.072 1.622 ↓ 11.0 11 1

Nested Loop Left Join (cost=42.19..91.18 rows=1 width=7,891) (actual time=0.675..1.622 rows=11 loops=1)

14. 0.075 1.473 ↓ 11.0 11 1

Nested Loop Left Join (cost=41.90..88.48 rows=1 width=7,812) (actual time=0.639..1.473 rows=11 loops=1)

15. 0.080 1.370 ↓ 7.0 7 1

Nested Loop Left Join (cost=41.77..87.65 rows=1 width=7,808) (actual time=0.609..1.370 rows=7 loops=1)

16. 0.071 1.192 ↓ 7.0 7 1

Nested Loop Left Join (cost=38.51..73.50 rows=1 width=6,641) (actual time=0.553..1.192 rows=7 loops=1)

  • Join Filter: ("parentItemVatLocales"."vatId" = "parentItemVat".id)
17. 0.047 1.121 ↓ 7.0 7 1

Nested Loop Left Join (cost=38.51..62.37 rows=1 width=5,053) (actual time=0.543..1.121 rows=7 loops=1)

18. 0.047 0.913 ↓ 7.0 7 1

Nested Loop Left Join (cost=37.94..56.18 rows=1 width=4,676) (actual time=0.483..0.913 rows=7 loops=1)

19. 0.057 0.838 ↓ 7.0 7 1

Nested Loop Left Join (cost=37.80..54.91 rows=1 width=4,040) (actual time=0.468..0.838 rows=7 loops=1)

  • Join Filter: ("itemCategoryLocales"."itemCategoryId" = "itemCategory".id)
  • Rows Removed by Join Filter: 36
20. 0.055 0.746 ↓ 7.0 7 1

Nested Loop Left Join (cost=37.80..53.80 rows=1 width=3,990) (actual time=0.450..0.746 rows=7 loops=1)

  • Join Filter: ("itemCategory".id = item."itemCategoryId")
  • Rows Removed by Join Filter: 23
21. 0.031 0.649 ↓ 7.0 7 1

Nested Loop Left Join (cost=37.80..52.71 rows=1 width=3,844) (actual time=0.431..0.649 rows=7 loops=1)

22. 0.032 0.485 ↓ 7.0 7 1

Nested Loop Left Join (cost=37.51..50.01 rows=1 width=3,765) (actual time=0.417..0.485 rows=7 loops=1)

23. 0.053 0.420 ↓ 3.0 3 1

Hash Right Join (cost=37.38..49.18 rows=1 width=3,761) (actual time=0.399..0.420 rows=3 loops=1)

  • Hash Cond: ("itemCurrencyLocales"."currencyId" = "itemCurrency".id)
24. 0.006 0.006 ↑ 43.3 3 1

Seq Scan on currency_locale "itemCurrencyLocales" (cost=0.00..11.30 rows=130 width=556) (actual time=0.005..0.006 rows=3 loops=1)

25. 0.012 0.361 ↓ 3.0 3 1

Hash (cost=37.37..37.37 rows=1 width=3,205) (actual time=0.361..0.361 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.008 0.349 ↓ 3.0 3 1

Nested Loop Left Join (cost=9.78..37.37 rows=1 width=3,205) (actual time=0.244..0.349 rows=3 loops=1)

27. 0.008 0.323 ↓ 3.0 3 1

Nested Loop Left Join (cost=9.63..34.12 rows=1 width=3,073) (actual time=0.226..0.323 rows=3 loops=1)

28. 0.032 0.126 ↓ 3.0 3 1

Hash Join (cost=2.98..5.68 rows=1 width=59) (actual time=0.088..0.126 rows=3 loops=1)

  • Hash Cond: (pait.id = spait.id)
29. 0.046 0.046 ↓ 1.0 57 1

Seq Scan on quotation_tree pait (cost=0.00..2.55 rows=55 width=59) (actual time=0.018..0.046 rows=57 loops=1)

30. 0.009 0.048 ↓ 3.0 3 1

Hash (cost=2.96..2.96 rows=1 width=4) (actual time=0.048..0.048 rows=3 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.039 0.039 ↓ 3.0 3 1

Seq Scan on quotation_tree spait (cost=0.00..2.96 rows=1 width=4) (actual time=0.010..0.039 rows=3 loops=1)

  • Filter: (("deletedAt" IS NULL) AND (lft >= 1) AND (rgt <= 6) AND ((grp)::text = '80'::text))
  • Rows Removed by Filter: 54
32. 0.013 0.189 ↑ 1.0 1 3

Nested Loop Left Join (cost=6.65..28.42 rows=1 width=3,014) (actual time=0.058..0.063 rows=1 loops=3)

33. 0.014 0.108 ↑ 1.0 1 3

Nested Loop Left Join (cost=3.39..14.27 rows=1 width=1,847) (actual time=0.035..0.036 rows=1 loops=3)

34. 0.036 0.036 ↑ 1.0 1 3

Index Scan using "UQ_07c9e6dfb6b56bb671757be3a4c" on quotation_item item (cost=0.14..0.37 rows=1 width=227) (actual time=0.012..0.012 rows=1 loops=3)

  • Index Cond: ("quotationTreeId" = pait.id)
35. 0.032 0.058 ↑ 1.0 1 2

Hash Right Join (cost=3.26..13.89 rows=1 width=1,620) (actual time=0.028..0.029 rows=1 loops=2)

  • Hash Cond: ("itemVatLocales"."vatId" = "itemVat".id)
36. 0.004 0.004 ↓ 0.0 0 2

Seq Scan on vat_locale "itemVatLocales" (cost=0.00..10.50 rows=50 width=1,588) (actual time=0.002..0.002 rows=0 loops=2)

37. 0.006 0.022 ↑ 1.0 1 2

Hash (cost=3.25..3.25 rows=1 width=32) (actual time=0.011..0.011 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
38. 0.016 0.016 ↑ 1.0 1 2

Index Scan using "PK_78a7504ba84d527a3cb7dd28297" on vat "itemVat" (cost=0.15..3.25 rows=1 width=32) (actual time=0.007..0.008 rows=1 loops=2)

  • Index Cond: (id = item."vatId")
39. 0.034 0.068 ↑ 1.0 1 2

Hash Right Join (cost=3.26..14.14 rows=1 width=1,167) (actual time=0.029..0.034 rows=1 loops=2)

  • Hash Cond: ("itemUnitTypeLocales"."unitTypeId" = "itemUnitType".id)
40. 0.008 0.008 ↑ 17.5 4 2

Seq Scan on unit_type_locale "itemUnitTypeLocales" (cost=0.00..10.70 rows=70 width=1,130) (actual time=0.003..0.004 rows=4 loops=2)

41. 0.010 0.026 ↑ 1.0 1 2

Hash (cost=3.25..3.25 rows=1 width=37) (actual time=0.013..0.013 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
42. 0.016 0.016 ↑ 1.0 1 2

Index Scan using "PK_e883871bf594e4890e06e7ee27e" on unit_type "itemUnitType" (cost=0.15..3.25 rows=1 width=37) (actual time=0.007..0.008 rows=1 loops=2)

  • Index Cond: (id = item."unitTypeId")
43. 0.018 0.018 ↑ 1.0 1 3

Index Scan using "PK_3cda65c731a6264f0e444cc9b91" on currency "itemCurrency" (cost=0.15..3.24 rows=1 width=132) (actual time=0.006..0.006 rows=1 loops=3)

  • Index Cond: (id = item."currencyId")
44. 0.033 0.033 ↑ 1.5 2 3

Index Only Scan using "PK_45e6dd7fbb5566b4a6d08658e5e" on quotation_item_attributes_attribite_value "item_itemAttributes" (cost=0.13..0.80 rows=3 width=8) (actual time=0.007..0.011 rows=2 loops=3)

  • Index Cond: ("quotationItemId" = item.id)
  • Heap Fetches: 5
45. 0.036 0.133 ↑ 1.0 1 7

Nested Loop Left Join (cost=0.29..2.69 rows=1 width=83) (actual time=0.017..0.019 rows=1 loops=7)

46. 0.042 0.042 ↑ 1.0 1 7

Index Scan using "PK_b3c44d7aec3433fa921ec72e323" on attribite_value "itemAttributes" (cost=0.14..2.45 rows=1 width=54) (actual time=0.005..0.006 rows=1 loops=7)

  • Index Cond: (id = "item_itemAttributes"."attribiteValueId")
47. 0.055 0.055 ↑ 1.0 1 5

Index Scan using "PK_b01a399aef5e6a4d4aabe4a6e83" on attribite_field "itemAttributesField" (cost=0.14..0.23 rows=1 width=29) (actual time=0.011..0.011 rows=1 loops=5)

  • Index Cond: (id = "itemAttributes"."fieldId")
48. 0.042 0.042 ↑ 1.0 4 7

Seq Scan on item_category "itemCategory" (cost=0.00..1.04 rows=4 width=146) (actual time=0.005..0.006 rows=4 loops=7)

49. 0.035 0.035 ↓ 1.2 6 7

Seq Scan on item_category_locale "itemCategoryLocales" (cost=0.00..1.05 rows=5 width=50) (actual time=0.004..0.005 rows=6 loops=7)

50. 0.028 0.028 ↑ 1.0 1 7

Index Scan using "PK_ed133b6c81724af85a3af6ed919" on attribite_rule "itemAttributesFieldRule" (cost=0.14..1.25 rows=1 width=636) (actual time=0.004..0.004 rows=1 loops=7)

  • Index Cond: (id = "itemAttributesField"."ruleId")
51. 0.034 0.161 ↑ 1.0 1 7

Nested Loop Left Join (cost=0.57..6.19 rows=1 width=377) (actual time=0.020..0.023 rows=1 loops=7)

52. 0.049 0.049 ↑ 1.0 1 7

Index Scan using "PK_9355a72837e164ab845e5a7d7af" on quotation_tree "itemQuotationTree" (cost=0.14..1.39 rows=1 width=59) (actual time=0.006..0.007 rows=1 loops=7)

  • Index Cond: (id = item."quotationTreeId")
53. 0.012 0.078 ↓ 0.0 0 6

Nested Loop Left Join (cost=0.43..4.79 rows=1 width=318) (actual time=0.011..0.013 rows=0 loops=6)

54. 0.042 0.042 ↓ 0.0 0 6

Index Scan using "PK_9355a72837e164ab845e5a7d7af" on quotation_tree parent (cost=0.14..0.45 rows=1 width=59) (actual time=0.006..0.007 rows=0 loops=6)

  • Index Cond: (id = "itemQuotationTree"."parentId")
  • Filter: (("outerType")::text = 'item'::text)
  • Rows Removed by Filter: 1
55. 0.005 0.024 ↑ 1.0 1 1

Nested Loop Left Join (cost=0.29..4.33 rows=1 width=259) (actual time=0.021..0.024 rows=1 loops=1)

56. 0.012 0.012 ↑ 1.0 1 1

Index Scan using "UQ_07c9e6dfb6b56bb671757be3a4c" on quotation_item "parentItem" (cost=0.14..1.08 rows=1 width=227) (actual time=0.010..0.012 rows=1 loops=1)

  • Index Cond: ("quotationTreeId" = parent.id)
57. 0.007 0.007 ↑ 1.0 1 1

Index Scan using "PK_78a7504ba84d527a3cb7dd28297" on vat "parentItemVat" (cost=0.15..3.25 rows=1 width=32) (actual time=0.007..0.007 rows=1 loops=1)

  • Index Cond: (id = "parentItem"."vatId")
58. 0.000 0.000 ↓ 0.0 0 7

Seq Scan on vat_locale "parentItemVatLocales" (cost=0.00..10.50 rows=50 width=1,588) (actual time=0.000..0.000 rows=0 loops=7)

59. 0.065 0.098 ↓ 0.0 0 7

Hash Right Join (cost=3.26..14.14 rows=1 width=1,167) (actual time=0.012..0.014 rows=0 loops=7)

  • Hash Cond: ("parentItemUnitTypeLocales"."unitTypeId" = "parentItemUnitType".id)
60. 0.005 0.005 ↑ 17.5 4 1

Seq Scan on unit_type_locale "parentItemUnitTypeLocales" (cost=0.00..10.70 rows=70 width=1,130) (actual time=0.003..0.005 rows=4 loops=1)

61. 0.014 0.028 ↓ 0.0 0 7

Hash (cost=3.25..3.25 rows=1 width=37) (actual time=0.004..0.004 rows=0 loops=7)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
62. 0.014 0.014 ↓ 0.0 0 7

Index Scan using "PK_e883871bf594e4890e06e7ee27e" on unit_type "parentItemUnitType" (cost=0.15..3.25 rows=1 width=37) (actual time=0.002..0.002 rows=0 loops=7)

  • Index Cond: (id = "parentItem"."unitTypeId")
63. 0.028 0.028 ↑ 3.0 1 7

Index Only Scan using "PK_45e6dd7fbb5566b4a6d08658e5e" on quotation_item_attributes_attribite_value "parentItem_parentItemAttributes" (cost=0.13..0.80 rows=3 width=8) (actual time=0.003..0.004 rows=1 loops=7)

  • Index Cond: ("quotationItemId" = "parentItem".id)
  • Heap Fetches: 5
64. 0.019 0.077 ↓ 0.0 0 11

Nested Loop Left Join (cost=0.29..2.69 rows=1 width=83) (actual time=0.007..0.007 rows=0 loops=11)

65. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "PK_b3c44d7aec3433fa921ec72e323" on attribite_value "parentItemAttributes" (cost=0.14..2.45 rows=1 width=54) (actual time=0.002..0.003 rows=0 loops=11)

  • Index Cond: (id = "parentItem_parentItemAttributes"."attribiteValueId")
66. 0.025 0.025 ↑ 1.0 1 5

Index Scan using "PK_b01a399aef5e6a4d4aabe4a6e83" on attribite_field "parentItemAttributesField" (cost=0.14..0.23 rows=1 width=29) (actual time=0.005..0.005 rows=1 loops=5)

  • Index Cond: (id = "parentItemAttributes"."fieldId")
67. 0.078 0.143 ↓ 0.0 0 11

Hash Right Join (cost=3.25..14.90 rows=1 width=688) (actual time=0.010..0.013 rows=0 loops=11)

  • Hash Cond: ("parentItemCurrencyLocales"."currencyId" = "parentItemCurrency".id)
68. 0.010 0.010 ↑ 43.3 3 5

Seq Scan on currency_locale "parentItemCurrencyLocales" (cost=0.00..11.30 rows=130 width=556) (actual time=0.001..0.002 rows=3 loops=5)

69. 0.022 0.055 ↓ 0.0 0 11

Hash (cost=3.24..3.24 rows=1 width=132) (actual time=0.005..0.005 rows=0 loops=11)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
70. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "PK_3cda65c731a6264f0e444cc9b91" on currency "parentItemCurrency" (cost=0.15..3.24 rows=1 width=132) (actual time=0.003..0.003 rows=0 loops=11)

  • Index Cond: (id = "parentItem"."currencyId")
71. 0.066 0.066 ↓ 1.2 5 11

Seq Scan on item_category "parentItemCategory" (cost=0.00..1.04 rows=4 width=146) (actual time=0.004..0.006 rows=5 loops=11)

72. 0.033 0.033 ↓ 1.2 6 11

Seq Scan on item_category_locale "parentItemCategoryLocales" (cost=0.00..1.05 rows=5 width=50) (actual time=0.002..0.003 rows=6 loops=11)

73. 0.019 0.077 ↓ 0.0 0 11

Nested Loop Left Join (cost=0.29..2.95 rows=1 width=769) (actual time=0.007..0.007 rows=0 loops=11)

74. 0.044 0.044 ↓ 0.0 0 11

Index Scan using "UQ_c60b196a364a0ef749f812a358e" on quotation (cost=0.14..0.37 rows=1 width=637) (actual time=0.004..0.004 rows=0 loops=11)

  • Index Cond: ("quotationTreeId" = pait.id)
75. 0.014 0.014 ↑ 1.0 1 1

Index Scan using "PK_3cda65c731a6264f0e444cc9b91" on currency "quotationCurrency" (cost=0.15..2.56 rows=1 width=132) (actual time=0.014..0.014 rows=1 loops=1)

  • Index Cond: (id = quotation."currencyId")
76. 0.022 0.022 ↓ 0.0 0 11

Index Scan using "PK_ed133b6c81724af85a3af6ed919" on attribite_rule "parentItemAttributesFieldRule" (cost=0.14..1.25 rows=1 width=636) (actual time=0.002..0.002 rows=0 loops=11)

  • Index Cond: (id = "parentItemAttributesField"."ruleId")
77. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "UQ_fa3485f9e0077b947008458bc25" on quotation_product product (cost=0.13..0.37 rows=1 width=161) (actual time=0.003..0.003 rows=0 loops=11)

  • Index Cond: ("quotationTreeId" = pait.id)
78. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "UQ_32422426089c75029118323a35f" on quotation_group "group" (cost=0.14..0.37 rows=1 width=163) (actual time=0.003..0.003 rows=0 loops=11)

  • Index Cond: ("quotationTreeId" = pait.id)
79. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "UQ_ba425a7ab509cc2290e10f4a0ee" on quotation_part "quotationPart" (cost=0.12..0.36 rows=1 width=228) (actual time=0.003..0.003 rows=0 loops=11)

  • Index Cond: ("quotationTreeId" = pait.id)
80. 0.033 0.033 ↓ 0.0 0 11

Index Scan using "PK_cace4a159ff9f2512dd42373760" on "user" "quotationCreatedBy" (cost=0.12..0.74 rows=1 width=3,648) (actual time=0.003..0.003 rows=0 loops=11)

  • Index Cond: (id = quotation."createdById")
81. 0.022 0.022 ↑ 43.3 3 11

Seq Scan on currency_locale "quotationCurrencyLocales" (cost=0.00..11.30 rows=130 width=556) (actual time=0.002..0.002 rows=3 loops=11)

82. 0.055 0.088 ↓ 0.0 0 11

Hash Right Join (cost=4.69..15.71 rows=11 width=1,596) (actual time=0.008..0.008 rows=0 loops=11)

  • Hash Cond: ("quotationTagsLocales"."parentId" = "quotationTags".id)
83. 0.000 0.000 ↓ 0.0 0

Seq Scan on tag_locale "quotationTagsLocales" (cost=0.00..10.70 rows=70 width=1,052) (never executed)

84. 0.011 0.033 ↓ 0.0 0 11

Hash (cost=4.55..4.55 rows=11 width=544) (actual time=0.003..0.003 rows=0 loops=11)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
85. 0.011 0.022 ↓ 0.0 0 11

Nested Loop Left Join (cost=0.30..4.55 rows=11 width=544) (actual time=0.002..0.002 rows=0 loops=11)

86. 0.011 0.011 ↓ 0.0 0 11

Index Scan using "IDX_369f835706d232817243778d18" on quotation_tags_tag "quotation_quotationTags" (cost=0.15..2.55 rows=11 width=8) (actual time=0.001..0.001 rows=0 loops=11)

  • Index Cond: ("quotationId" = quotation.id)
87. 0.000 0.000 ↓ 0.0 0

Index Scan using "PK_8e4052373c579afc1471f526760" on tag "quotationTags" (cost=0.14..0.18 rows=1 width=540) (never executed)

  • Index Cond: (id = "quotation_quotationTags"."tagId")