[SERVER-4854] Can you query the entire collection when you've built subcollections Created: 02/Feb/12 Updated: 29/Feb/12 Resolved: 03/Feb/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Vriti Jain | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | collection, query, subcollections | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
We're thinking about creating subcollections, but a few preliminary tests seem to suggest that if you create subcollections foo.bar and foo.baz, you can't query both subcollections using db.foo.find(). Is this the case? |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 03/Feb/12 ] |
|
db.bar.foo isn't really a sub-collections, its just a name with a . in it. |