README.textile in methodmissing-mysqlplus_adapter-1.0.3 vs README.textile in methodmissing-mysqlplus_adapter-1.0.4
- old
+ new
@@ -89,10 +89,14 @@
class PostsController
def index
# No blocking, executes in the background, yields a deferrable result.
#
- @posts = Posts.published.find(:all, :defer => true )
+ @posts = Posts.published.find(:all, :defer => true ) # Slow, push to the background
+ @visitors = Site.visitors.recent # Snappy
+ # You don't want to do this. Try to not invoke methods on deferred results right away
+ # to minimize potential blocking.
+ @posts.any?
end
end
</code>
</pre>
\ No newline at end of file