explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gKEd

Settings
# exclusive inclusive rows x rows loops node
1. 0.005 0.795 ↑ 1.0 10 1

Limit (cost=3.12..154.65 rows=10 width=9,391) (actual time=0.212..0.795 rows=10 loops=1)

2. 0.123 0.790 ↑ 510.8 10 1

Nested Loop Left Join (cost=3.12..77,407.49 rows=5,108 width=9,391) (actual time=0.210..0.790 rows=10 loops=1)

3. 0.212 0.637 ↑ 509.0 10 1

Nested Loop Left Join (cost=2.68..67,786.49 rows=5,090 width=9,285) (actual time=0.185..0.637 rows=10 loops=1)

4. 0.032 0.385 ↑ 507.2 10 1

Nested Loop Left Join (cost=2.25..58,199.51 rows=5,072 width=9,179) (actual time=0.133..0.385 rows=10 loops=1)

  • Join Filter: (o.order_additional_status_code = delivery_detail_additional_status.code)
  • Rows Removed by Join Filter: 270
5. 0.012 0.323 ↑ 507.2 10 1

Nested Loop Left Join (cost=2.11..58,121.06 rows=5,072 width=8,117) (actual time=0.103..0.323 rows=10 loops=1)

6. 0.014 0.281 ↑ 507.2 10 1

Nested Loop Left Join (cost=1.83..51,417.97 rows=5,072 width=8,044) (actual time=0.090..0.281 rows=10 loops=1)

7. 0.013 0.267 ↑ 507.2 10 1

Nested Loop Left Join (cost=1.27..37,415.71 rows=5,072 width=6,063) (actual time=0.084..0.267 rows=10 loops=1)

8. 0.023 0.254 ↑ 507.2 10 1

Nested Loop Left Join (cost=0.71..23,413.45 rows=5,072 width=4,082) (actual time=0.077..0.254 rows=10 loops=1)

  • Join Filter: (o.order_status_code = order_status.code)
  • Rows Removed by Join Filter: 225
9. 0.131 0.131 ↑ 507.2 10 1

Index Scan using idx_order_sender_code on "order" o (cost=0.56..23,333.88 rows=5,072 width=1,981) (actual time=0.052..0.131 rows=10 loops=1)

  • Index Cond: ((sender_contragent_code)::text = '56090b33d83467dd84bd15ce'::text)
  • Filter: ((NOT deleted) AND (date_time_create >= '2019-08-07 00:00:00'::timestamp without time zone) AND (date_time_create <= '2019-09-07 23:59:59'::timestamp without time zone))
  • Rows Removed by Filter: 38
10. 0.024 0.100 ↓ 24.0 24 10

Materialize (cost=0.14..3.49 rows=1 width=2,101) (actual time=0.002..0.010 rows=24 loops=10)

11. 0.036 0.076 ↓ 26.0 26 1

Nested Loop Left Join (cost=0.14..3.49 rows=1 width=2,101) (actual time=0.019..0.076 rows=26 loops=1)

  • Join Filter: (order_status."groupCode" = order_status_group.code)
  • Rows Removed by Join Filter: 29
12. 0.014 0.014 ↓ 26.0 26 1

Index Scan using "idx-order_status-lang" on order_status (cost=0.14..2.36 rows=1 width=1,061) (actual time=0.008..0.014 rows=26 loops=1)

  • Index Cond: ((lang)::text = 'rus'::text)
13. 0.026 0.026 ↓ 2.0 2 26

Seq Scan on order_status_group (cost=0.00..1.11 rows=1 width=1,040) (actual time=0.001..0.001 rows=2 loops=26)

  • Filter: ((lang)::text = 'rus'::text)
  • Rows Removed by Filter: 3
14. 0.000 0.000 ↓ 0.0 0 10

Index Scan using "idx-order_id_ek5" on "order" ro (cost=0.56..2.76 rows=1 width=1,981) (actual time=0.000..0.000 rows=0 loops=10)

  • Index Cond: (o.reverse_ek5_id = id_ek5)
15. 0.000 0.000 ↓ 0.0 0 10

Index Scan using "idx-order_id_ek5" on "order" so (cost=0.56..2.76 rows=1 width=1,981) (actual time=0.000..0.000 rows=0 loops=10)

  • Index Cond: (o.straight_ek5_id = id_ek5)
16. 0.030 0.030 ↑ 1.0 1 10

Index Scan using "idx-tariff_type-code-lang" on tariff_type (cost=0.28..1.33 rows=1 width=73) (actual time=0.003..0.003 rows=1 loops=10)

  • Index Cond: ((o.tariff_type_code = code) AND ((lang)::text = 'rus'::text))
17. 0.015 0.030 ↓ 27.0 27 10

Materialize (cost=0.14..2.37 rows=1 width=1,062) (actual time=0.001..0.003 rows=27 loops=10)

18. 0.015 0.015 ↓ 27.0 27 1

Index Scan using "idx-delivery_detail_additional_status-lang" on delivery_detail_additional_status (cost=0.14..2.36 rows=1 width=1,062) (actual time=0.006..0.015 rows=27 loops=1)

  • Index Cond: ((lang)::text = 'rus'::text)
19. 0.040 0.040 ↑ 1.0 1 10

Index Scan using "idx-city-code-lang" on city rc (cost=0.43..1.89 rows=1 width=106) (actual time=0.004..0.004 rows=1 loops=10)

  • Index Cond: ((code = (((o.receiver)::json #>> '{address,cityCode}'::text[]))::integer) AND ((lang)::text = 'rus'::text))
20. 0.030 0.030 ↑ 1.0 1 10

Index Scan using "idx-city-code-lang" on city sc (cost=0.43..1.89 rows=1 width=106) (actual time=0.003..0.003 rows=1 loops=10)

  • Index Cond: ((code = (((o.sender)::json #>> '{address,cityCode}'::text[]))::integer) AND ((lang)::text = 'rus'::text))
Planning time : 14.439 ms
Execution time : 1.067 ms