This depends somewhat on the specifics of your use case. Take a look at Brett Slatkin's 09 IO talk. He discusses something like your first model. http://code.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html
Robert On Tue, Aug 31, 2010 at 06:10, alf <alberto....@gmail.com> wrote: > I think second. the first you need deserialize list to find a data > > but i not sure > > On Aug 31, 11:22 am, ogterran <jonathanh...@gmail.com> wrote: >> Hi, >> >> I have a choice to store the data two ways. Which way is more >> efficient when querying in BigTable? >> >> First way: >> class Page(db.Model): >> pagekey= db.StringProperty(required=True) >> usernames = db.StringListProperty(required=True) >> >> So all the users who visits the page, will be added to the username >> list >> >> Second way: >> >> class Page(db.Model): >> pagekey= db.StringProperty(required=True) >> username = db.StringProperty(required=True) >> All the users who visits the page will have its own row >> >> The query will be with both username and pagekey. >> There can be a lot of users. >> Is there a limit on the StringList size? >> what are the advantages of each methods of storing data? >> >> Thanks >> Jon > > -- > 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-appeng...@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. > > -- 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-appeng...@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.