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

Allow projections with dotted fields to be covered

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Indexing
    • Labels:
      None

      Description

      The indexOnly flag is currently always false for projections including sub-documents:

      >db.test.insert({x:1,p: {s:1}})
      >db.test.ensureIndex({x:1,'p.s':1})
      >db.test.find({x:1},{x:1,'p.s':1,_id:0}).explain().indexOnly
      false

      no different query projection seems to enable indexOnly : true on sub documents.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: