Advertisement
tarkhil

explain_boguk

Aug 21st, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. Update on authors (cost=35264302.23..35268994.63 rows=181677 width=1207)
  2. CTE t1
  3. -> Result (cost=67.12..67.13 rows=1 width=8)
  4. InitPlan 1 (returns $0)
  5. -> Limit (cost=0.43..67.12 rows=1 width=8)
  6. -> Index Scan Backward using authors_moment_idx on authors authors_1 (cost=0.43..1764308.59 rows=26457 width=8)
  7. Index Cond: (moment IS NOT NULL)
  8. Filter: interesting
  9. CTE t2
  10. -> GroupAggregate (cost=0.57..25401348.02 rows=8595 width=19)
  11. Group Key: videos.author
  12. Filter: (count(*) >= 50)
  13. -> Index Only Scan using videos_author_idx on videos (cost=0.57..24523213.46 rows=175562448 width=19)
  14. CTE t3
  15. -> HashAggregate (cost=9862172.92..9862495.23 rows=8595 width=19)
  16. Group Key: videos_1.author
  17. Filter: (count(*) > 1)
  18. -> Index Scan using videos_loaded_idx on videos videos_1 (cost=0.57..9827996.76 rows=6835232 width=19)
  19. Index Cond: (loaded IS NOT NULL)
  20. InitPlan 5 (returns $4)
  21. -> CTE Scan on t1 (cost=0.00..0.02 rows=1 width=8)
  22. -> Hash Join (cost=391.83..5084.24 rows=181677 width=1207)
  23. Hash Cond: ((authors.user_id)::text = (t3.author)::text)
  24. -> Nested Loop (cost=193.94..1911.39 rows=363354 width=1182)
  25. -> HashAggregate (cost=193.39..195.39 rows=200 width=572)
  26. Group Key: (t2.author)::text
  27. -> CTE Scan on t2 (cost=0.00..171.90 rows=8595 width=572)
  28. -> Index Scan using authors_user_id_key on authors (cost=0.56..8.57 rows=1 width=610)
  29. Index Cond: ((user_id)::text = (t2.author)::text)
  30. Filter: (videos AND (moment > $4))
  31. -> Hash (cost=195.39..195.39 rows=200 width=572)
  32. -> HashAggregate (cost=193.39..195.39 rows=200 width=572)
  33. Group Key: (t3.author)::text
  34. -> CTE Scan on t3 (cost=0.00..171.90 rows=8595 width=572)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement