explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Rslm

Settings
# exclusive inclusive rows x rows loops node
1. 0.044 1,568.383 ↑ 1.0 30 1

Limit (cost=2.71..2,844.30 rows=30 width=1,945) (actual time=0.612..1,568.383 rows=30 loops=1)

  • Buffers: shared hit=774271
2. 2.239 1,568.339 ↑ 5,961.3 30 1

Nested Loop Left Join (cost=2.71..16,939,536.55 rows=178,838 width=1,945) (actual time=0.611..1,568.339 rows=30 loops=1)

  • Buffers: shared hit=774271
3. 1.254 1,565.950 ↑ 5,940.3 30 1

Nested Loop Left Join (cost=2.27..16,621,096.89 rows=178,208 width=2,425) (actual time=0.507..1,565.950 rows=30 loops=1)

  • Buffers: shared hit=774000
4. 0.159 1,564.456 ↑ 5,919.3 30 1

Nested Loop Left Join (cost=1.84..16,306,898.05 rows=177,580 width=2,577) (actual time=0.470..1,564.456 rows=30 loops=1)

  • Join Filter: (o.order_additional_status_code = delivery_detail_additional_status.code)
  • Rows Removed by Join Filter: 774
  • Buffers: shared hit=773814
5. 0.150 1,564.177 ↑ 5,919.3 30 1

Nested Loop Left Join (cost=1.84..16,304,231.01 rows=177,580 width=2,061) (actual time=0.428..1,564.177 rows=30 loops=1)

  • Buffers: shared hit=773812
6. 0.082 1,563.697 ↑ 5,919.3 30 1

Nested Loop Left Join (cost=1.56..16,069,742.28 rows=177,580 width=2,028) (actual time=0.413..1,563.697 rows=30 loops=1)

  • Buffers: shared hit=773722
7. 0.161 1,563.585 ↑ 5,919.3 30 1

Nested Loop Left Join (cost=1.00..15,641,333.98 rows=177,580 width=2,034) (actual time=0.409..1,563.585 rows=30 loops=1)

  • Buffers: shared hit=773722
8. 0.235 1,563.394 ↑ 5,919.3 30 1

Nested Loop Left Join (cost=0.44..15,212,925.68 rows=177,580 width=2,040) (actual time=0.403..1,563.394 rows=30 loops=1)

  • Join Filter: (o.order_status_code = order_status.code)
  • Rows Removed by Join Filter: 749
  • Buffers: shared hit=773722
9. 1,562.919 1,562.919 ↑ 5,919.3 30 1

Index Scan using idx_order_date_time_create_date_desc on "order" o (cost=0.44..15,210,257.87 rows=177,580 width=1,004) (actual time=0.345..1,562.919 rows=30 loops=1)

  • Index Cond: ((date_time_create >= '2019-03-05 00:00:00'::timestamp without time zone) AND (date_time_create <= '2019-09-07 23:59:59'::timestamp without time zone))
  • Filter: ((NOT deleted) AND (((sender_contragent_code)::text = '4469aa32-bdf8-443f-b4c0-4fe5184c4c3d'::text) OR ((receiver_contragent_code)::text = '4469aa32-bdf8-443f-b4c0-4fe5184c4c3d'::text) OR ((payer_contragent_code)::text = '4469aa32-bdf8-443f-b4c0-4fe5184c4c3d'::text)))
  • Rows Removed by Filter: 765504
  • Buffers: shared hit=773694
10. 0.135 0.240 ↓ 26.0 26 30

Materialize (cost=0.00..4.11 rows=1 width=1,040) (actual time=0.002..0.008 rows=26 loops=30)

  • Buffers: shared hit=28
11. 0.045 0.105 ↓ 26.0 26 1

Nested Loop Left Join (cost=0.00..4.10 rows=1 width=1,040) (actual time=0.025..0.105 rows=26 loops=1)

  • Join Filter: (order_status."groupCode" = order_status_group.code)
  • Rows Removed by Join Filter: 29
  • Buffers: shared hit=28
12. 0.034 0.034 ↓ 26.0 26 1

Seq Scan on order_status (cost=0.00..2.98 rows=1 width=524) (actual time=0.014..0.034 rows=26 loops=1)

  • Filter: ((lang)::text = 'rus'::text)
  • Rows Removed by Filter: 52
  • Buffers: shared hit=2
13. 0.026 0.026 ↓ 2.0 2 26

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

  • Filter: ((lang)::text = 'rus'::text)
  • Rows Removed by Filter: 3
  • Buffers: shared hit=26
14. 0.030 0.030 ↓ 0.0 0 30

Index Scan using "idx-order_id_ek5" on "order" ro (cost=0.56..2.41 rows=1 width=26) (actual time=0.001..0.001 rows=0 loops=30)

  • Index Cond: (o.reverse_ek5_id = id_ek5)
15. 0.030 0.030 ↓ 0.0 0 30

Index Scan using "idx-order_id_ek5" on "order" so (cost=0.56..2.41 rows=1 width=26) (actual time=0.001..0.001 rows=0 loops=30)

  • Index Cond: (o.straight_ek5_id = id_ek5)
16. 0.330 0.330 ↑ 1.0 1 30

Index Scan using "idx-tariff_type-code-lang" on tariff_type (cost=0.28..1.32 rows=1 width=41) (actual time=0.011..0.011 rows=1 loops=30)

  • Index Cond: ((o.tariff_type_code = code) AND ((lang)::text = 'rus'::text))
  • Buffers: shared hit=90
17. 0.093 0.120 ↓ 26.0 26 30

Materialize (cost=0.00..3.34 rows=1 width=520) (actual time=0.000..0.004 rows=26 loops=30)

  • Buffers: shared hit=2
18. 0.027 0.027 ↓ 27.0 27 1

Seq Scan on delivery_detail_additional_status (cost=0.00..3.34 rows=1 width=520) (actual time=0.005..0.027 rows=27 loops=1)

  • Filter: ((lang)::text = 'rus'::text)
  • Rows Removed by Filter: 80
  • Buffers: shared hit=2
19. 0.240 0.240 ↑ 1.0 1 30

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

  • Index Cond: ((code = (((o.receiver)::json #>> '{address,cityCode}'::text[]))::integer) AND ((lang)::text = 'rus'::text))
  • Buffers: shared hit=120
20. 0.150 0.150 ↑ 1.0 1 30

Index Scan using "idx-city-code-lang" on city sc (cost=0.43..1.77 rows=1 width=29) (actual time=0.005..0.005 rows=1 loops=30)

  • Index Cond: ((code = (((o.sender)::json #>> '{address,cityCode}'::text[]))::integer) AND ((lang)::text = 'rus'::text))
  • Buffers: shared hit=120
Planning time : 19.454 ms
Execution time : 1,568.583 ms