explain.depesz.com

PostgreSQL's explain analyze made readable

Result: muji : 234234

Settings
# exclusive inclusive rows x rows loops node
1. 0.069 28.129 ↓ 5.5 154 1

Unique (cost=460.23..460.44 rows=28 width=16) (actual time=28.032..28.129 rows=154 loops=1)

2. 0.292 28.060 ↓ 11.1 310 1

Sort (cost=460.23..460.30 rows=28 width=16) (actual time=28.029..28.060 rows=310 loops=1)

  • Sort Key: rtt.mobject_id, rtt.route_id
  • Sort Method: quicksort Memory: 39kB
3. 8.975 27.768 ↓ 11.1 310 1

Nested Loop Semi Join (cost=323.10..459.56 rows=28 width=16) (actual time=14.041..27.768 rows=310 loops=1)

  • Join Filter: (rtt.mobject_id = m.id)
  • Rows Removed by Join Filter: 53150
4. 0.273 11.973 ↓ 5.6 310 1

Bitmap Heap Scan on uzgps_routing_trip_template rtt (cost=277.92..403.85 rows=55 width=16) (actual time=11.736..11.973 rows=310 loops=1)

  • Recheck Cond: ((time_start >= ((date_part('epoch'::text, date_trunc('day'::text, now())) * '1000'::double precision))::bigint) AND (time_start <= ((date_part('epoch'::text, date_trunc('day'::text, (now() + '1 day'::interval))) * '1000': (...)
  • Heap Blocks: exact=8
5. 11.700 11.700 ↓ 5.6 310 1

Bitmap Index Scan on uzgps_routing_trip_template_status_time_start_idx (cost=0.00..277.90 rows=55 width=0) (actual time=11.700..11.700 rows=310 loops=1)

  • Index Cond: ((time_start >= ((date_part('epoch'::text, date_trunc('day'::text, now())) * '1000'::double precision))::bigint) AND (time_start <= ((date_part('epoch'::text, date_trunc('day'::text, (now() + '1 day'::interval))) * '10 (...)
6. 4.471 6.820 ↓ 57.3 172 310

Materialize (cost=45.18..53.24 rows=3 width=8) (actual time=0.005..0.022 rows=172 loops=310)

7. 0.049 2.349 ↓ 70.7 212 1

Nested Loop (cost=45.18..53.22 rows=3 width=8) (actual time=1.609..2.349 rows=212 loops=1)

8. 0.017 1.538 ↓ 2.0 2 1

HashAggregate (cost=44.91..44.91 rows=1 width=16) (actual time=1.538..1.538 rows=2 loops=1)

  • Group Key: c.id
9. 0.016 1.521 ↓ 11.0 11 1

Nested Loop Semi Join (cost=1.41..44.90 rows=1 width=16) (actual time=0.364..1.521 rows=11 loops=1)

  • Join Filter: (c.id = uzgps_user_access_list.ual_contractid)
  • Rows Removed by Join Filter: 55
10. 1.417 1.417 ↓ 11.0 11 1

Seq Scan on uzgps_contract c (cost=0.00..43.16 rows=1 width=8) (actual time=0.288..1.417 rows=11 loops=1)

  • Filter: ((status_id = ANY ('{1,2}'::bigint[])) AND ((c_status)::text = 'A'::text))
11. 0.043 0.088 ↑ 1.7 6 11

HashAggregate (cost=1.41..1.51 rows=10 width=8) (actual time=0.007..0.008 rows=6 loops=11)

  • Group Key: uzgps_user_access_list.ual_contractid
12. 0.045 0.045 ↓ 3.2 32 1

Seq Scan on uzgps_user_access_list (cost=0.00..1.39 rows=10 width=8) (actual time=0.027..0.045 rows=32 loops=1)

  • Filter: (ual_routing > 0)
13. 0.762 0.762 ↓ 106.0 106 2

Index Scan using uzgps_mobject_mo_contract_id_mo_status_idx on uzgps_mobject m (cost=0.28..8.30 rows=1 width=16) (actual time=0.065..0.381 rows=106 loops=2)

  • Index Cond: ((mo_contract_id = c.id) AND ((mo_status)::text = 'A'::text))