[google-appengine] Re: Some design Issues in appengine datastore
Thanks all for your suggestions,I am trying different ways and reading about various design patterns that can be used, I will update the thread once i am done with some more work on this. On Sun, May 3, 2009 at 11:17 PM, ryan ryanb+appeng...@google.comryanb%2bappeng...@google.com wrote: also take a look at polymodel: http://code.google.com/appengine/docs/python/datastore/polymodelclass.html On May 1, 12:54 pm, adelevie adele...@gmail.com wrote: try readinghttp://bret.appspot.com/entry/how-friendfeed-uses-mysql one pitfall to avoid is to rely on a recursive function to iterate through a tree. On May 1, 9:24 am, Ted suin...@googlemail.com wrote: 1# class Food(db.Model): category = db.StringListProperty() [other properties] apple = Food(category=['fruit','red','iron','apple']) greenfruit = Food(category=['fruit','green']) veg3 = Food(category= ['vegetable','category1','category2','category3']) If you query category='fruit', you'll get both apple and greenfruit. 2# Try to use auto-completion provided by some Ajax libraries like YUI. 3# Do you mean XMPP and Jaiku, seehttp:// morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Some design Issues in appengine datastore
also take a look at polymodel: http://code.google.com/appengine/docs/python/datastore/polymodelclass.html On May 1, 12:54 pm, adelevie adele...@gmail.com wrote: try readinghttp://bret.appspot.com/entry/how-friendfeed-uses-mysql one pitfall to avoid is to rely on a recursive function to iterate through a tree. On May 1, 9:24 am, Ted suin...@googlemail.com wrote: 1# class Food(db.Model): category = db.StringListProperty() [other properties] apple = Food(category=['fruit','red','iron','apple']) greenfruit = Food(category=['fruit','green']) veg3 = Food(category= ['vegetable','category1','category2','category3']) If you query category='fruit', you'll get both apple and greenfruit. 2# Try to use auto-completion provided by some Ajax libraries like YUI. 3# Do you mean XMPP and Jaiku, seehttp://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Some design Issues in appengine datastore
1# class Food(db.Model): category = db.StringListProperty() [other properties] apple = Food(category=['fruit','red','iron','apple']) greenfruit = Food(category=['fruit','green']) veg3 = Food(category= ['vegetable','category1','category2','category3']) If you query category='fruit', you'll get both apple and greenfruit. 2# Try to use auto-completion provided by some Ajax libraries like YUI. 3# Do you mean XMPP and Jaiku, see http://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imified/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Some design Issues in appengine datastore
try reading http://bret.appspot.com/entry/how-friendfeed-uses-mysql one pitfall to avoid is to rely on a recursive function to iterate through a tree. On May 1, 9:24 am, Ted suin...@googlemail.com wrote: 1# class Food(db.Model): category = db.StringListProperty() [other properties] apple = Food(category=['fruit','red','iron','apple']) greenfruit = Food(category=['fruit','green']) veg3 = Food(category= ['vegetable','category1','category2','category3']) If you query category='fruit', you'll get both apple and greenfruit. 2# Try to use auto-completion provided by some Ajax libraries like YUI. 3# Do you mean XMPP and Jaiku, seehttp://morethanseven.net/2009/02/21/example-using-xmpp-app-engine-imi... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---