Add Criteria#pluck_each method

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the #pluck method returns all results at once as an array. This is problematic when working with large result sets.

      I'd like to have something like Criteria#each, where pluck results are progressively yielded as they are fetched from the database (using an Enumerator). I propose to call this method #pluck_each.

      I've started a draft PR here: https://github.com/mongodb/mongoid/pull/5332

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: