[appengine-java] Entity relationship table

2010-07-18 Thread dmetri333
Im relatively new too GAE and the Datastore, and i had a question on
the best way to setup some entities.

I have created a entity called 'Person' and this person has a list of
friends in the system that are also of type 'Person'.  In SQL i would
have created a simple linker/relationship table with 2 fields
(person_id, friend_id), both referring to the same id from the
'Person' table.

I was wondering what the best practice for doing this with GAE and
bigtable.

demetri

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Entity relationship table

2010-07-18 Thread Ikai L (Google)
The best practice is probably to create list properties with Keys
representing friend IDs. This is a good video to watch:

http://www.youtube.com/watch?v=AgaL6NGpkB8

On Fri, Jul 16, 2010 at 8:03 AM, dmetri333 dmetri...@gmail.com wrote:

 Im relatively new too GAE and the Datastore, and i had a question on
 the best way to setup some entities.

 I have created a entity called 'Person' and this person has a list of
 friends in the system that are also of type 'Person'.  In SQL i would
 have created a simple linker/relationship table with 2 fields
 (person_id, friend_id), both referring to the same id from the
 'Person' table.

 I was wondering what the best practice for doing this with GAE and
 bigtable.

 demetri

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.