[SERVER-14564] explain() doesn't work with $min / $max Created: 15/Jul/14 Updated: 10/Dec/14 Resolved: 15/Jul/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
The following query runs successfully on 2.6.3, but explains doesn't allow $min / $max.
|
| Comments |
| Comment by J Rassi [ 15/Jul/14 ] | ||
Yep: | ||
| Comment by Siyuan Zhou [ 15/Jul/14 ] | ||
|
rassi@10gen.com - it works perfect with {$explain: true}, thanks! I am curious if we have any plan to make explain() work with $query / $min / $max? Since I feel like it's a reasonable expectation from users to explain() any query. If it's not possible technically, the documentation might need to update for $explain and explain(). | ||
| Comment by J Rassi [ 15/Jul/14 ] | ||
|
Could you try with {$explain: true} instead of .explain()? See also <http://docs.mongodb.org/manual/reference/operator/meta/query/>:
|