Advertisement
dimuska139

Untitled

Oct 18th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. Sort (cost=164993057.90..164993557.90 rows=200000 width=39)
  2. Sort Key: ((d.d)::date) DESC, l.name
  3. -> Nested Loop (cost=164968.45..164975448.26 rows=200000 width=39)
  4. -> Function Scan on generate_series d (cost=0.01..10.01 rows=1000 width=8)
  5. -> HashAggregate (cost=164968.44..164970.94 rows=200 width=35)
  6. Group Key: l.name
  7. -> HashAggregate (cost=158616.24..161503.60 rows=230989 width=15)
  8. Group Key: l.name, (c.created_at)::date
  9. -> Hash Join (cost=55475.46..156883.82 rows=230989 width=7)
  10. Hash Cond: (fi.locale_id = l.id)
  11. -> Nested Loop (cost=55471.12..155681.70 rows=230989 width=12)
  12. -> Hash Join (cost=55470.69..90095.68 rows=116159 width=12)
  13. Hash Cond: (f.content_id = c.id)
  14. -> Seq Scan on films f (cost=0.00..27900.52 rows=2561702 width=8)
  15. -> Hash (cost=53844.57..53844.57 rows=130089 width=12)
  16. -> Seq Scan on content c (cost=0.00..53844.57 rows=130089 width=12)
  17. Filter: (((content_type)::text = 'movie'::text) AND ((created_at)::date < d.d))
  18. -> Index Only Scan using films_info_film_id_locale_id_key on films_info fi (cost=0.43..0.52 rows=4 width=8)
  19. Index Cond: (film_id = f.id)
  20. -> Hash (cost=2.04..2.04 rows=184 width=7)
  21. -> Seq Scan on locales l (cost=0.00..2.04 rows=184 width=7)
  22. JIT:
  23. Functions: 31
  24. Options: Inlining true, Optimization true, Expressions true, Deforming true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement