Let’s say I have the following codes
...
blog = c.design_docs['blog']
blog.views #=> ["recent_posts"]
recent_posts = blog.recent_posts(include_docs: true)
recent_posts.each do |post|
puts post.id
# Do something more...
end
....
If I have very large number of recent_posts (ex, 1GB in total), blog.recent_posts will put the whole 1GB of documents in memory?