Re: [google-appengine] Better to use Key or User in referencing Users?

2011-06-16 Thread Nick Johnson (Google)
Hi Carter, Querying on one property or another has effectively no difference in performance. There are other considerations, however: - Using a key will allow you to potentially add support for users authenticated in other ways (Eg, an external authentication framework) without changing the rest o

[google-appengine] Better to use Key or User in referencing Users?

2011-06-16 Thread Carter
Is a query on type User more expensive than querying on type Key? In storing references to users of your application across multiple Kinds, which is better the better approach assuming I don't need locking for transactions? a) store the "User" type (the actual User object) or b) store a "Key" typ