mongoid/mongoid — Issue #1566: Where is the cursor? 
Author: reiz
Created: 2012-01-08 16:43:54+00:00
State: open

Hi everybody,
I have a collections with over 30K documents. I want to iterate over the collection because I have to make operations on every document. By calling all() MongoID tries to load all 30K documents into the memory. In Java I would just fetch the iterator/cursor and iterate with a "while construct" through the collection. How can I get the iterator/cursor with MongoID? I couldn't find anything in the documentation to "cursors".
Thanks.