Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1567

Where is the cursor?

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.1
    • Affects Version/s: None
    • Component/s: None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            reiz Robert Reiz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: