[google-appengine] Datastore StringList or multiple rows?

2010-08-31 Thread ogterran
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 us

Re: [google-appengine] Datastore StringList or multiple rows?

2010-08-31 Thread Jeff Schwartz
A list property's size is limited to 5000. If you only want to know if a user has visited a page, you can use the first model & query it returning only keys to avoid list serialization issues. In addition, key only queries are very fast. Additionally, if your Page model's key had a string name th