From: Alex Huang <huangzili...@gmail.com>
Date: Thu, 10 May 2012 04:09:42 -0700 (PDT)
Local: Thurs, May 10 2012 7:09 am
Subject: Re: Can this query be optimized?
db.surveyResponse.find({"surveyId" : "4f39a79601bfa841a2c06272", "$nor" : any improvement pls do tell me.
在 2012年5月10日星期四UTC+8下午6时57分41秒,Alex Paransky写道:
> We have a query that looks like this:
> db.surveyResponse.find({"surveyId" : "4f39a79601bfa841a2c06272",
> "$nor" : [
> {
> "interviewStatus" : -99
> },
> {
> "interviewStatus" : -50
> },
> {
> "interviewStatus" : -60
> }
> ]
> }
> )
> We also have an index {surveyId:1, interviewStatus:1}
> Somewhere I read that $nor will not use index, but $or will. Does this > There are about 2 million documents in this table. InterviewStatus is an > Thanks.
> -AP_
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||