You could copy the followers (a very light entity) as child entities of your
parent! In this way, followers and parent user will be in the same entity
group and can be retrieved in the same transaction! But you can't retrieve
more than 1000 entities in a single request so you need to manage offsets or
cursors!

You could also serialize the followers id in a json string for ex but it
shouldn't exceed 1Mb! This is quite raw as you can't perform queries on this
field but can be useful sometimes!

The last solution I see just now is to reverse the problem and create a
table joining the users and their followers and perform a request on the
followers following a given userid

pascal

On Wed, Jul 27, 2011 at 6:09 PM, Bruno Sandivilli <
[email protected]> wrote:

> Ok, thanks! This is not a proble since facebook have this limit too. But
> for Followers a have to implement some workarround for this(since followers
> is a more big number); Any ideas? Thanks
>
> 2011/7/27 Pascal Voitot Dev <[email protected]>
>
>> Hi,
>>
>> You can look at this post on stackoverflow to have a few more info! The
>> most known issues are:
>> - the limit of 5000 elements per list
>>  - the famous index explosion issue (last GAE version tells that index
>> explosion won't happen but I don't know exactly what it means)
>>
>> Pascal
>>
>>   On Tue, Jul 26, 2011 at 10:19 PM, Bruno Sandivilli <
>> [email protected]> wrote:
>>
>>>  Hi, i'm modeling a social network, i use to create a table with the
>>> relations like (userid,friendid)
>>> but in nosql, im planning to simple add a list of id to each user,
>>> like User { List<Integer> firends }.
>>>
>>> Is this wrong(it works, but and the performance) ?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine?hl=en.
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to