App Engine Namespaces
App Engine provides a way to set the current "na开发者_开发问答mespace". Is this a way to be able to easily reference variables, and thus not always have to insert database lookups in one's code?
Not quite.
Namespacing is useful when you have an appengine app that you want to deploy to serve discrete groups data. You can read more about it here.
With namespacing, you partition your appengine app's stuff (datastore, memcache, and taskqueue) into a bunch of separate groups where data, row keys, tasks, etc, don't cross-contaminate or have name/key collisions.
No. Namespaces are intended to make it easier to segment your datastore (etc.).
It is particular useful if your app servers multiple organizations, but each organizations' data should be completely separate. This simplifies your code, and may also help app engine scale your app too. Read more this in the documentation on an Overview of Multitenancy.
精彩评论