explain.depesz.com

PostgreSQL's explain analyze made readable

Result: S3bcu

Settings
# exclusive inclusive rows x rows loops node
1. 0.031 1,208.704 ↑ 1.0 30 1

Limit (cost=2.71..2,431.76 rows=30 width=1,945) (actual time=5.074..1,208.704 rows=30 loops=1)

  • Buffers: shared hit=758206
2. 1.688 1,208.673 ↑ 7,030.1 30 1

Nested Loop Left Join (cost=2.71..17,076,576.13 rows=210,904 width=1,945) (actual time=5.073..1,208.673 rows=30 loops=1)

  • Buffers: shared hit=758206
3. 0.985 1,206.865 ↑ 7,005.4 30 1

Nested Loop Left Join (cost=2.27..16,701,147.01 rows=210,163 width=2,423) (actual time=5.005..1,206.865 rows=30 loops=1)

  • Buffers: shared hit=757934
4. 0.144 1,205.700 ↑ 6,980.8 30 1

Nested Loop Left Join (cost=1.84..16,330,714.11 rows=209,425 width=2,575) (actual time=4.979..1,205.700 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=757748
5. 0.086 1,205.466 ↑ 6,980.8 30 1

Nested Loop Left Join (cost=1.84..16,327,569.39 rows=209,425 width=2,059) (actual time=4.932..1,205.466 rows=30 loops=1)

  • Buffers: shared hit=757746
6. 0.068 1,205.140 ↑ 6,980.8 30 1

Nested Loop Left Join (cost=1.56..16,051,031.03 rows=209,425 width=2,026) (actual time=4.919..1,205.140 rows=30 loops=1)

  • Buffers: shared hit=757656
7. 0.127 1,205.072 ↑ 6,980.8 30 1

Nested Loop Left Join (cost=1.00..15,549,129.53 rows=209,425 width=2,032) (actual time=4.916..1,205.072 rows=30 loops=1)

  • Buffers: shared hit=757656
8. 0.182 1,204.915 ↑ 6,980.8 30 1

Nested Loop Left Join (cost=0.44..15,047,228.03 rows=209,425 width=2,038) (actual time=4.911..1,204.915 rows=30 loops=1)

  • Join Filter: (o.order_status_code = order_status.code)
  • Rows Removed by Join Filter: 749
  • Buffers: shared hit=757656
9. 1,204.553 1,204.553 ↑ 6,980.8 30 1

Index Scan using idx_order_date_time_create_date_desc on "order" o (cost=0.44..15,044,082.55 rows=209,425 width=1,002) (actual time=4.857..1,204.553 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: 750201
  • Buffers: shared hit=757628
10. 0.099 0.180 ↓ 26.0 26 30

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

  • Buffers: shared hit=28
11. 0.032 0.081 ↓ 26.0 26 1

Nested Loop Left Join (cost=0.00..4.10 rows=1 width=1,040) (actual time=0.020..0.081 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.023 0.023 ↓ 26.0 26 1

Seq Scan on order_status (cost=0.00..2.98 rows=1 width=524) (actual time=0.010..0.023 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.40 rows=1 width=26) (actual time=0.001..0.001 rows=0 loops=30)

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

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

  • Index Cond: (o.straight_ek5_id = id_ek5)
16. 0.240 0.240 ↑ 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.008..0.008 rows=1 loops=30)

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

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

  • Buffers: shared hit=2
18. 0.035 0.035 ↓ 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.035 rows=27 loops=1)

  • Filter: ((lang)::text = 'rus'::text)
  • Rows Removed by Filter: 80
  • Buffers: shared hit=2
19. 0.180 0.180 ↑ 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.006..0.006 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.120 0.120 ↑ 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.004..0.004 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 : 22.942 ms
Execution time : 1,208.874 ms