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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.3
    • Affects Version/s: None
    • Component/s: Querying
    • None

      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.

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

              Created:
              Updated:
              Resolved: