explain.depesz.com

PostgreSQL's explain analyze made readable

Result: uVOK

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 0.057 ↓ 0.0 0 1

Limit (cost=22.18..22.18 rows=1 width=1,945) (actual time=0.057..0.057 rows=0 loops=1)

2. 0.011 0.055 ↓ 0.0 0 1

Sort (cost=22.18..22.18 rows=1 width=1,945) (actual time=0.055..0.055 rows=0 loops=1)

  • Sort Key: o.date_time_create DESC
  • Sort Method: quicksort Memory: 25kB
3. 0.000 0.044 ↓ 0.0 0 1

Nested Loop (cost=3.09..22.17 rows=1 width=1,945) (actual time=0.044..0.044 rows=0 loops=1)

4. 0.000 0.044 ↓ 0.0 0 1

Nested Loop (cost=2.67..19.50 rows=1 width=2,421) (actual time=0.044..0.044 rows=0 loops=1)

5. 0.001 0.044 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.25..16.85 rows=1 width=2,573) (actual time=0.044..0.044 rows=0 loops=1)

  • Join Filter: (o.order_additional_status_code = delivery_detail_additional_status.code)
6. 0.000 0.043 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.11..14.48 rows=1 width=2,057) (actual time=0.043..0.043 rows=0 loops=1)

  • Join Filter: (order_status."groupCode" = order_status_group.code)
7. 0.000 0.043 ↓ 0.0 0 1

Nested Loop Left Join (cost=2.11..13.33 rows=1 width=1,541) (actual time=0.043..0.043 rows=0 loops=1)

8. 0.000 0.043 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.83..10.82 rows=1 width=1,508) (actual time=0.043..0.043 rows=0 loops=1)

9. 0.000 0.043 ↓ 0.0 0 1

Nested Loop Left Join (cost=1.27..8.04 rows=1 width=1,514) (actual time=0.043..0.043 rows=0 loops=1)

10. 0.001 0.043 ↓ 0.0 0 1

Nested Loop (cost=0.71..5.26 rows=1 width=1,520) (actual time=0.042..0.043 rows=0 loops=1)

11. 0.042 0.042 ↓ 0.0 0 1

Index Scan using "idx-order_number" on "order" o (cost=0.56..2.88 rows=1 width=1,000) (actual time=0.042..0.042 rows=0 loops=1)

  • Index Cond: ((number)::text = '1105047210'::text)
  • Filter: ((NOT deleted) AND (date_time_create >= '2019-03-05 00:00:00'::timestamp without time zone) AND (date_time_create <= '2019-03-07 23:59:59'::timestamp without time zone) AND (order_additional_status_code = 5) AND (order_status_code = 5) AND (order_type_code = 5) AND (((sender_contragent_code)::text = '56090b33d83467dd84bd15ce'::text) OR ((receiver_contragent_code)::text = '56090b33d83467dd84bd15ce'::text) OR ((payer_contragent_code)::text = '56090b33d83467dd84bd15ce'::text)) AND (((receiver)::json ->> 'name'::text) ~~ '%Васина%'::text) AND (((sender)::json ->> 'name'::text) ~~ '%company%'::text) AND (((receiver)::json #>> '{phones,0,number}'::text[]) ~~ '%9295849%'::text) AND (((sender)::json #>> '{phones,0,number}'::text[]) ~~ '%8800555%'::text) AND (((online_shop)::json ->> 'numberDeparture'::text) = 'IdentCityIMR410749210'::text) AND ((((receiver)::json #>> '{address,cityCode}'::text[]))::integer = 44) AND ((((sender)::json #>> '{address,cityCode}'::text[]))::integer = 270))
12. 0.000 0.000 ↓ 0.0 0

Index Scan using "idx-order_status-code-lang" on order_status (cost=0.14..2.37 rows=1 width=524) (never executed)

  • Index Cond: ((code = 5) AND ((lang)::text = 'rus'::text))
  • Filter: ("groupCode" = 3)
13. 0.000 0.000 ↓ 0.0 0

Index Scan using "idx-order_id_ek5" on "order" ro (cost=0.56..2.78 rows=1 width=26) (never executed)

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

Index Scan using "idx-order_id_ek5" on "order" so (cost=0.56..2.78 rows=1 width=26) (never executed)

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

Index Scan using "idx-tariff_type-code-lang" on tariff_type (cost=0.28..2.50 rows=1 width=41) (never executed)

  • Index Cond: ((o.tariff_type_code = code) AND ((lang)::text = 'rus'::text))
16. 0.000 0.000 ↓ 0.0 0

Seq Scan on order_status_group (cost=0.00..1.14 rows=1 width=520) (never executed)

  • Filter: ((code = 3) AND ((lang)::text = 'rus'::text))
17. 0.000 0.000 ↓ 0.0 0

Index Scan using "idx-delivery_detail_additional_status-code-lang" on delivery_detail_additional_status (cost=0.14..2.36 rows=1 width=520) (never executed)

  • Index Cond: ((code = 5) AND ((lang)::text = 'rus'::text))
18. 0.000 0.000 ↓ 0.0 0

Index Scan using "idx-city-code-lang" on city rc (cost=0.42..2.64 rows=1 width=29) (never executed)

  • Index Cond: ((code = 44) AND ((lang)::text = 'rus'::text))
19. 0.000 0.000 ↓ 0.0 0

Index Scan using "idx-city-code-lang" on city sc (cost=0.42..2.64 rows=1 width=29) (never executed)

  • Index Cond: ((code = 270) AND ((lang)::text = 'rus'::text))
Planning time : 8.284 ms
Execution time : 0.468 ms