Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion $and operator seems to be causing mongo to not use index.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sam Martin  
View profile  
 More options Sep 29 2012, 3:01 pm
From: Sam Martin <sambomar...@gmail.com>
Date: Sat, 29 Sep 2012 12:01:17 -0700 (PDT)
Local: Sat, Sep 29 2012 3:01 pm
Subject: $and operator seems to be causing mongo to not use index.

Hi all,

got a wierd problem,

using simple find on indexed attribute

{ "myatt":1234}

explained, all good using BTree index

do an

{$and :[ {myattr:1234},{myatt:1234}]}

reverts to basic cursor

any ideas?

thanks,
sam


 
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.