Efficient way to get child entity/key given a parent entity

22 views
Skip to first unread message

Joydeep Sinha

unread,
Jun 3, 2012, 12:30:20 AM6/3/12
to google-a...@googlegroups.com

I wanted to ask if there is a direct and efficient way to get the child of a parent entity.

I am modelling a follower/ following relationship(like twitter). So I have a user model and a message model. I have a Follower and Following model which have a user model as a parent.

So whenever a user writes a message(or say tweet), all his followers should be able to get that. In this case I need to figure out who are the followers of the user(who sends a message).

Any help is greatly appreciated


Reply all
Reply to author
Forward
0 new messages