explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Ig41

Settings
# exclusive inclusive rows x rows loops node
1. 0.010 96.979 ↑ 1.0 10 1

Limit (cost=3.12..513.05 rows=10 width=9,384) (actual time=23.429..96.979 rows=10 loops=1)

2. 0.155 96.969 ↑ 489.8 10 1

Nested Loop Left Join (cost=3.12..249,769.57 rows=4,898 width=9,384) (actual time=23.428..96.969 rows=10 loops=1)

3. 0.357 96.774 ↑ 488.1 10 1

Nested Loop Left Join (cost=2.68..240,508.46 rows=4,881 width=9,270) (actual time=23.399..96.774 rows=10 loops=1)

4. 0.048 96.367 ↑ 486.4 10 1

Nested Loop Left Join (cost=2.25..231,279.60 rows=4,864 width=9,164) (actual time=23.324..96.367 rows=10 loops=1)

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

Nested Loop Left Join (cost=2.11..231,204.28 rows=4,864 width=8,102) (actual time=22.628..95.619 rows=10 loops=1)

6. 0.035 95.530 ↑ 486.4 10 1

Nested Loop Left Join (cost=1.83..224,776.52 rows=4,864 width=8,029) (actual time=22.612..95.530 rows=10 loops=1)

7. 0.034 95.495 ↑ 486.4 10 1

Nested Loop Left Join (cost=1.27..211,344.80 rows=4,864 width=6,053) (actual time=22.602..95.495 rows=10 loops=1)

8. 0.053 95.451 ↑ 486.4 10 1

Nested Loop Left Join (cost=0.71..197,913.08 rows=4,864 width=4,077) (actual time=22.593..95.451 rows=10 loops=1)

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

Index Scan using idx_order_sender_code_date_deleted on "order" o (cost=0.56..197,836.63 rows=4,864 width=1,976) (actual time=22.551..95.278 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.036 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.036 0.084 ↓ 26.0 26 1

Nested Loop Left Join (cost=0.14..3.49 rows=1 width=2,101) (actual time=0.031..0.084 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.015..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.010 0.010 ↓ 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.001 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.050 0.050 ↑ 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.005..0.005 rows=1 loops=10)

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

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

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

  • Index Cond: ((lang)::text = 'rus'::text)
19. 0.050 0.050 ↑ 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.005..0.005 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 : 20.584 ms
Execution time : 97.291 ms