On Fri, Mar 18, 2011 at 12:52 AM, kllam55 <kll...@gmail.com> wrote:
> Yes. Here is the query with explain (initial combo indexes):
> -------------------------
>> db.objects.find({ locale: "us", state: "published", series: { $nin: [ "sponsor" ] }, restricted: { $ne: true }, tags: { $all: [ "gameplay", "ipad2" ] } }).explain()
> {
> "cursor" : "BtreeCursor locale_1_state_1_tags_1",
> "nscanned" : 58213,
> "nscannedObjects" : 58213,
> "n" : 23,
> "millis" : 10301,
> "indexBounds" : {
> "locale" : [
> [
> "us",
> "us"
> ]
> ],
> "state" : [
> [
> "published",
> "published"
> ]
> ],
> "tags" : [
> [
> "gameplay",
> "gameplay"
> ]
> ]
> }
> }
>
> Here is the query with explain (second combo indexes added for the
> $nin and $ne filtered keys):
> -----
> db.videos.find({ locale: "us", state: "published", series: { $nin:
> --
> 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.
>
>