[SERVER-8659] Allow projections with dotted fields to be covered Created: 21/Feb/13  Updated: 10/Oct/14  Resolved: 10/Oct/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Andre de Frere Assignee: David Storch
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-2104 covered index should support dotted f... Closed
Related
related to SERVER-10448 Revamp explain() formatting Closed
Participants:

 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.



 Comments   
Comment by David Storch [ 10/Oct/14 ]

Closing as a duplicate of SERVER-2104.

Generated at Thu Feb 08 03:18:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.