Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2920

add atomic output collection to DBQuery

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query

      A Map/Reduce query can atomically output its results to a separate collection, which is nice for a job where you want to create "views" of the data that you can then query within.

      It would be nice if immediate queries could do the same thing, eg.

      db.mycollection.find(

      {hasAttachments:true}

      ).out(attachcollection);

      It could operate asynchronously, and attachcollection would remain unmodified until the query was complete after which it would be atomically swapped with the temporary collection in which the new results reside.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            samkass Sam Kass
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: