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

query that just returns value in index should get data from index

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.3
    • Component/s: Querying
    • Labels:
      None

      Description

      if you have something like
      db.users.save(

      { name : "" , address... , etc... }

      )
      db.users.ensureIndex(

      { name : 1 }

      )
      and you do
      db.users.find( {} ,

      { name : 1 }

      )
      it should only look at the index and never go to object.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eliot Eliot Horowitz (Inactive)
              Reporter:
              eliot Eliot Horowitz (Inactive)
              Participants:
              Votes:
              20 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: