I'm afraid you need to go through them all. You can limit the ones you
need to go through with a query including the location.
> 2. Possibly find the actual count of "jpg" in memphis location alone.
You could change your structure to this:
{ ID : "Folder.1109", location : "memphis", DocType : [ {type:"pdf" :
count:15}, {type:"jpg" : count:3}]}
to be able to find({location:"memphis", "DocType.type":"pdf"})
using this index: {location:1, "DocType.type": 1}
> Thx.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.