explain.depesz.com

PostgreSQL's explain analyze made readable

Result: DrpN

Settings
# exclusive inclusive rows x rows loops node
1. 0.297 1.575 ↓ 1.9 29 1

Nested Loop Left Join (cost=7.58..59.48 rows=15 width=1,979) (actual time=1.147..1.575 rows=29 loops=1)

2. 0.010 1.230 ↓ 4.0 8 1

Nested Loop Left Join (cost=7.01..44.65 rows=2 width=1,537) (actual time=1.045..1.230 rows=8 loops=1)

3. 0.016 1.204 ↓ 4.0 8 1

Nested Loop Left Join (cost=6.57..41.48 rows=2 width=1,533) (actual time=1.037..1.204 rows=8 loops=1)

4. 0.013 1.172 ↓ 4.0 8 1

Nested Loop Left Join (cost=6.14..38.17 rows=2 width=1,471) (actual time=1.029..1.172 rows=8 loops=1)

5. 0.010 1.127 ↓ 4.0 8 1

Nested Loop Left Join (cost=5.57..36.18 rows=2 width=1,311) (actual time=1.019..1.127 rows=8 loops=1)

6. 0.006 1.097 ↓ 2.0 2 1

Nested Loop Left Join (cost=5.01..30.92 rows=1 width=1,244) (actual time=1.007..1.097 rows=2 loops=1)

7. 0.003 1.081 ↓ 2.0 2 1

Nested Loop Left Join (cost=4.58..28.26 rows=1 width=1,151) (actual time=0.999..1.081 rows=2 loops=1)

8. 0.003 1.068 ↓ 2.0 2 1

Nested Loop Left Join (cost=4.15..25.24 rows=1 width=872) (actual time=0.991..1.068 rows=2 loops=1)

9. 0.004 1.055 ↓ 2.0 2 1

Nested Loop Left Join (cost=3.71..22.58 rows=1 width=871) (actual time=0.984..1.055 rows=2 loops=1)

10. 0.002 1.043 ↓ 2.0 2 1

Nested Loop Left Join (cost=3.28..19.92 rows=1 width=859) (actual time=0.977..1.043 rows=2 loops=1)

11. 0.002 1.033 ↓ 2.0 2 1

Nested Loop Left Join (cost=2.85..17.26 rows=1 width=724) (actual time=0.970..1.033 rows=2 loops=1)

12. 0.004 1.023 ↓ 2.0 2 1

Nested Loop Left Join (cost=2.42..14.59 rows=1 width=658) (actual time=0.963..1.023 rows=2 loops=1)

13. 0.008 1.005 ↓ 2.0 2 1

Nested Loop (cost=1.99..11.93 rows=1 width=584) (actual time=0.952..1.005 rows=2 loops=1)

  • Join Filter: (order_addresses.order_id = order_application_users.order_id)
14. 0.004 0.085 ↓ 2.0 2 1

Nested Loop (cost=1.56..11.13 rows=1 width=542) (actual time=0.041..0.085 rows=2 loops=1)

15. 0.002 0.051 ↓ 2.0 2 1

Nested Loop (cost=0.99..9.99 rows=1 width=369) (actual time=0.019..0.051 rows=2 loops=1)

16. 0.033 0.033 ↑ 1.0 2 1

Index Scan using orders_pkey on orders (cost=0.56..4.67 rows=2 width=300) (actual time=0.009..0.033 rows=2 loops=1)

  • Index Cond: (id = ANY ('{26236857,27923671}'::integer[]))
17. 0.016 0.016 ↑ 1.0 1 2

Index Scan using order_addresses_order_id_address_id_unique on order_addresses (cost=0.43..2.65 rows=1 width=69) (actual time=0.007..0.008 rows=1 loops=2)

  • Index Cond: (order_id = orders.id)
  • Filter: (is_current IS TRUE)
18. 0.030 0.030 ↑ 1.0 1 2

Index Scan using orders_pkey on orders calculated_information (cost=0.56..1.13 rows=1 width=173) (actual time=0.014..0.015 rows=1 loops=2)

  • Index Cond: (order_id = order_addresses.order_id)
19. 0.912 0.912 ↑ 1.0 1 2

Index Scan using order_application_users_order_id_index on order_application_users (cost=0.43..0.78 rows=1 width=62) (actual time=0.455..0.456 rows=1 loops=2)

  • Index Cond: (order_id = calculated_information.order_id)
20. 0.014 0.014 ↓ 0.0 0 2

Index Scan using order_storekeepers_order_id_index on order_storekeepers storekeeper (cost=0.43..2.65 rows=1 width=82) (actual time=0.005..0.007 rows=0 loops=2)

  • Index Cond: (order_id = orders.id)
  • Filter: (is_current IS TRUE)
21. 0.008 0.008 ↓ 0.0 0 2

Index Scan using order_personal_shoppers_order_id_index on order_personal_shoppers personal_shopper (cost=0.42..2.66 rows=1 width=74) (actual time=0.004..0.004 rows=0 loops=2)

  • Index Cond: (order_id = orders.id)
  • Filter: (is_current IS TRUE)
22. 0.008 0.008 ↓ 0.0 0 2

Index Scan using order_reference_point_pkey on order_reference_point (cost=0.43..2.65 rows=1 width=139) (actual time=0.004..0.004 rows=0 loops=2)

  • Index Cond: (order_id = orders.id)
23. 0.008 0.008 ↓ 0.0 0 2

Index Scan using order_partner_order_id_unique on order_partner (cost=0.43..2.65 rows=1 width=12) (actual time=0.004..0.004 rows=0 loops=2)

  • Index Cond: (order_id = orders.id)
24. 0.010 0.010 ↑ 1.0 1 2

Index Scan using order_store_zones_pkey on order_store_zones (cost=0.43..2.65 rows=1 width=5) (actual time=0.005..0.005 rows=1 loops=2)

  • Index Cond: (order_id = orders.id)
25. 0.010 0.010 ↓ 0.0 0 2

Index Scan using order_whims_order_id_index on order_whims (cost=0.43..3.00 rows=2 width=283) (actual time=0.004..0.005 rows=0 loops=2)

  • Index Cond: (order_id = orders.id)
26. 0.010 0.010 ↑ 1.0 1 2

Index Scan using order_stores_order_id_index on order_stores (cost=0.43..2.65 rows=1 width=97) (actual time=0.005..0.005 rows=1 loops=2)

  • Index Cond: (order_id = orders.id)
27. 0.020 0.020 ↑ 11.8 4 2

Index Scan using order_product_order_id_index on order_product (cost=0.56..4.79 rows=47 width=71) (actual time=0.008..0.010 rows=4 loops=2)

  • Index Cond: (order_id = orders.id)
28. 0.032 0.032 ↑ 1.0 1 8

Index Scan using order_product_detail_pkey on order_product_detail products (cost=0.56..0.98 rows=1 width=164) (actual time=0.003..0.004 rows=1 loops=8)

  • Index Cond: (order_product_id = order_product.id)
29. 0.016 0.016 ↓ 0.0 0 8

Index Scan using order_product_topping_detail_order_product_id_index on order_product_topping_detail toppings (cost=0.43..1.34 rows=32 width=66) (actual time=0.002..0.002 rows=0 loops=8)

  • Index Cond: (order_product_id = order_product.id)
30. 0.016 0.016 ↓ 0.0 0 8

Index Scan using order_product_topping_order_product_id_index on order_product_topping (cost=0.44..1.30 rows=29 width=8) (actual time=0.002..0.002 rows=0 loops=8)

  • Index Cond: (order_product_id = order_product.id)
31. 0.048 0.048 ↑ 8.0 3 8

Index Scan using order_modifications_order_id_index on order_modifications (cost=0.57..6.97 rows=24 width=33) (actual time=0.003..0.006 rows=3 loops=8)

  • Index Cond: (order_id = orders.id)