Advertisement
tarkhil

explain

Aug 21st, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Update on authors (cost=67.55..20683002928.29 rows=181677 width=611)
  2. InitPlan 2 (returns $1)
  3. -> Result (cost=67.11..67.12 rows=1 width=8)
  4. InitPlan 1 (returns $0)
  5. -> Limit (cost=0.43..67.11 rows=1 width=8)
  6. -> Index Scan Backward using authors_moment_idx on authors authors_1 (cost=0.43..1764284.59 rows=26457 width=8)
  7. Index Cond: (moment IS NOT NULL)
  8. Filter: interesting
  9. -> Index Scan using authors_check_new on authors (cost=0.43..20683002861.17 rows=181677 width=611)
  10. Index Cond: ((videos = true) AND (moment > $1))
  11. Filter: (videos AND (SubPlan 3) AND (SubPlan 4))
  12. SubPlan 3
  13. -> Aggregate (cost=1080.48..1080.50 rows=1 width=32)
  14. Filter: (count(*) >= 50)
  15. -> Index Only Scan using videos_author_idx on videos (cost=0.57..1063.46 rows=6809 width=0)
  16. Index Cond: (author = (authors.user_id)::text)
  17. SubPlan 4
  18. -> Aggregate (cost=27378.13..27378.14 rows=1 width=32)
  19. Filter: (count(*) > 1)
  20. -> Bitmap Heap Scan on videos videos_1 (cost=399.70..27377.47 rows=265 width=0)
  21. Recheck Cond: ((author)::text = (authors.user_id)::text)
  22. Filter: (loaded IS NOT NULL)
  23. -> Bitmap Index Scan on videos_author_idx (cost=0.00..399.64 rows=6809 width=0)
  24. Index Cond: ((author)::text = (authors.user_id)::text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement