explain.depesz.com

PostgreSQL's explain analyze made readable

Result: jVSB

Settings
# exclusive inclusive rows x rows loops node
1. 0.023 98.012 ↑ 1.0 10 1

Limit (cost=3.12..513.13 rows=10 width=9,384) (actual time=22.067..98.012 rows=10 loops=1)

2. 0.173 97.989 ↑ 489.8 10 1

Nested Loop Left Join (cost=3.12..249,809.17 rows=4,898 width=9,384) (actual time=22.065..97.989 rows=10 loops=1)

3. 0.367 97.776 ↑ 488.1 10 1

Nested Loop Left Join (cost=2.68..240,548.06 rows=4,881 width=9,270) (actual time=22.031..97.776 rows=10 loops=1)

4. 0.054 97.329 ↑ 486.4 10 1

Nested Loop Left Join (cost=2.25..231,319.20 rows=4,864 width=9,164) (actual time=21.949..97.329 rows=10 loops=1)

  • Join Filter: (o.order_additional_status_code = delivery_detail_additional_status.code)
  • Rows Removed by Join Filter: 270
5. 0.054 97.225 ↑ 486.4 10 1

Nested Loop Left Join (cost=2.11..231,243.88 rows=4,864 width=8,102) (actual time=21.908..97.225 rows=10 loops=1)

6. 0.040 97.101 ↑ 486.4 10 1

Nested Loop Left Join (cost=1.83..224,816.12 rows=4,864 width=8,029) (actual time=21.887..97.101 rows=10 loops=1)

7. 0.027 97.061 ↑ 486.4 10 1

Nested Loop Left Join (cost=1.27..211,384.40 rows=4,864 width=6,053) (actual time=21.877..97.061 rows=10 loops=1)

8. 0.050 97.014 ↑ 486.4 10 1

Nested Loop Left Join (cost=0.71..197,952.68 rows=4,864 width=4,077) (actual time=21.868..97.014 rows=10 loops=1)

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

Index Scan using idx_order_sender_code_date_deleted on "order" o (cost=0.56..197,876.23 rows=4,864 width=1,976) (actual time=21.826..96.844 rows=10 loops=1)

  • Index Cond: ((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) AND ((sender_contragent_code)::text = '56090b33d83467dd84bd15ce'::text) AND (deleted = false))
  • Filter: (NOT deleted)
10. 0.037 0.120 ↓ 24.0 24 10

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

11. 0.035 0.083 ↓ 26.0 26 1

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

  • Join Filter: (order_status."groupCode" = order_status_group.code)
  • Rows Removed by Join Filter: 29
12. 0.022 0.022 ↓ 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.014..0.022 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.020 0.020 ↓ 0.0 0 10

Index Scan using "idx-order_id_ek5" on "order" ro (cost=0.56..2.76 rows=1 width=1,976) (actual time=0.001..0.002 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,976) (actual time=0.000..0.000 rows=0 loops=10)

  • Index Cond: (o.straight_ek5_id = id_ek5)
16. 0.070 0.070 ↑ 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.007..0.007 rows=1 loops=10)

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

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

18. 0.019 0.019 ↓ 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.009..0.019 rows=27 loops=1)

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

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

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

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

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