explain.depesz.com

PostgreSQL's explain analyze made readable

Result: XURA

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.007 ↓ 0.0 0 1

Nested Loop Left Join (cost=38.97..55.04 rows=1 width=147) (actual time=0.007..0.007 rows=0 loops=1)

2. 0.000 0.007 ↓ 0.0 0 1

Nested Loop Left Join (cost=38.82..46.86 rows=1 width=143) (actual time=0.007..0.007 rows=0 loops=1)

3. 0.000 0.007 ↓ 0.0 0 1

Limit (cost=38.66..38.67 rows=1 width=139) (actual time=0.007..0.007 rows=0 loops=1)

4. 0.004 0.007 ↓ 0.0 0 1

Sort (cost=38.66..38.67 rows=1 width=139) (actual time=0.007..0.007 rows=0 loops=1)

  • Sort Key: outfit.outfit_post_datetime DESC
  • Sort Method: quicksort Memory: 25kB
5. 0.001 0.003 ↓ 0.0 0 1

GroupAggregate (cost=24.14..38.65 rows=1 width=139) (actual time=0.003..0.003 rows=0 loops=1)

  • Group Key: outfit.id_outfit
6. 0.000 0.002 ↓ 0.0 0 1

Nested Loop (cost=24.14..38.64 rows=1 width=135) (actual time=0.002..0.002 rows=0 loops=1)

7. 0.000 0.002 ↓ 0.0 0 1

Nested Loop (cost=23.72..31.11 rows=1 width=139) (actual time=0.002..0.002 rows=0 loops=1)

8. 0.000 0.002 ↓ 0.0 0 1

Merge Join (cost=23.29..23.47 rows=1 width=12) (actual time=0.002..0.002 rows=0 loops=1)

  • Merge Cond: (rel_outfit_hashtag.id_outfit = detection_item.id_outfit)
9. 0.002 0.002 ↓ 0.0 0 1

Index Only Scan using outfit_hashtag_idx on rel_outfit_hashtag (cost=0.15..63.20 rows=1,270 width=8) (actual time=0.002..0.002 rows=0 loops=1)

  • Heap Fetches: 0
10. 0.000 0.000 ↓ 0.0 0

Sort (cost=22.98..22.99 rows=2 width=4) (never executed)

  • Sort Key: detection_item.id_outfit
11. 0.000 0.000 ↓ 0.0 0

Nested Loop (cost=0.15..22.97 rows=2 width=4) (never executed)

12. 0.000 0.000 ↓ 0.0 0

Seq Scan on item (cost=0.00..14.79 rows=1 width=4) (never executed)

  • Filter: (((im_name)::text ~~ '%%-45'::text) AND ((brand_name)::text = 'GU'::text))
13. 0.000 0.000 ↓ 0.0 0

Index Scan using index_detection_item_id_item on detection_item (cost=0.15..8.17 rows=1 width=8) (never executed)

  • Index Cond: (id_item = item.id_item)
14. 0.000 0.000 ↓ 0.0 0

Index Scan using outfit_pkey on outfit (cost=0.42..7.63 rows=1 width=131) (never executed)

  • Index Cond: (id_outfit = rel_outfit_hashtag.id_outfit)
  • Filter: ((deleted_at IS NULL) AND export_flag AND (eg_result = 1))
15. 0.000 0.000 ↓ 0.0 0

Index Scan using hashtag_pkey on hashtag (cost=0.42..7.52 rows=1 width=4) (never executed)

  • Index Cond: (id_hashtag = rel_outfit_hashtag.id_hashtag)
  • Filter: (lower((hashtag_key_word)::text) = 'summer'::text)
16. 0.000 0.000 ↓ 0.0 0

Index Scan using outfit_comment_count_id_outfit_key on outfit_comment_count (cost=0.15..8.17 rows=1 width=8) (never executed)

  • Index Cond: (id_outfit = outfit.id_outfit)
  • Filter: (deleted_at IS NULL)
17. 0.000 0.000 ↓ 0.0 0

Index Scan using idx_id_outfit on outfit_star_count (cost=0.15..8.17 rows=1 width=8) (never executed)

  • Index Cond: (id_outfit = outfit.id_outfit)
  • Filter: (deleted_at IS NULL)
Planning time : 1.340 ms
Execution time : 0.298 ms