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

Allow projections with dotted fields to be covered

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • 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@mongodb.com David Storch
            Reporter:
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: