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

Allow projections with dotted fields to be covered

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Index Maintenance
    • 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

        Activity

          People

            david.storch@mongodb.com David Storch
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: