Allow projections with dotted fields to be covered

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              David Storch
              Reporter:
              Andre de Frere
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: