> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/UnPZHIWxJ7AJ.
> 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.
I don't think you can do that right now.
As a workaround, you can shard on ( 2dfield , _id )
That should make things work well in all cases.
On Mon, Apr 23, 2012 at 12:11 PM, JP <jpaulo...@gmail.com> wrote:
> Hi!
>
> I have a collection with a 2d index and a regular index. Right now it has ~6
> million documents. All updates use the regular index but most queries use
> the 2d index. If I shard this collection using the regular index as the key,
> how does that affect the queries? Will it improve the queries performance or
> slow it down?
>
> Thanks,
>
> --
> JP
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/UnPZHIWxJ7AJ.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to