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 user <-> membership <-> team schema to design
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 Millman  
View profile  
 More options Oct 6 2011, 9:52 am
From: Sam Millman <sam.mill...@gmail.com>
Date: Thu, 6 Oct 2011 14:52:21 +0100
Local: Thurs, Oct 6 2011 9:52 am
Subject: Re: [mongodb-user] Re: user <-> membership <-> team schema to design

in PHP it is still on single query:

find(array("memberships" => array('$in' => new MongoId($user_id))));

This will not only return the membership and related membership for possible
friends etc but also the team details all in one go.

Whereas with plan 1 it is two queries.

On 6 October 2011 14:42, Karl Seguin <karlseg...@gmail.com> wrote:

> I think you are over simplifying.

> How well does #2 work in a sharded environment if you want to get all of a
> player's teams?

> Karl

>  --
> 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/-/gYvBu4FVIA0J.

> To post to this group, send email to mongodb-user@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

 
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.