On Sep 24, 5:55 am, Mouseclicker <jens.h...@googlemail.com> wrote: > I wanted to start a discussion about lifecycle and threading behavior > of the NamespaceManager. Much of this has been answered meanwhile in > another > thread:http://groups.google.com/group/google-appengine-java/browse_thread/th... > > The namespace is really a great feature to have. What has been > discussed in this thread is something that should be added to the > documentation. This would help a lot. > > I see two other problem areas with the current API design: > > 1) I understand that setting a namespace in a request context that is > inherited to the individual calls in the app engine is often the > desired behavior. But when I have set a namespace for my application > context (for example user specific) and want to update let's say a > counter for statistics in a "global" namespace for my application the > API is a bit inconvenient. Why is there no way to set a namespace for > an individual Key in the datastore for example? This would be much > cleaner, simpler and it is so easy to add without breaking the current > API. The need to set and later reset a global setting is dangerous and > error-prone. Probably that's what Guillaume mentions with "The fear I > had was when seeing a static methods being used. I'm always afraid > when I see 'static' somewhere." Me too! > > 2) To investigate the behavior of NamespaceManager I have created a > small test application (if someone is interested I can share). For > this testing purpose namespace is derived from a parameter in a URL > (it's a test app!): Here I ran quickly into an interesting issue: If > you forget which namespaces you ever have used you will never find > your data again and even worse there is no way to delete them! > Fortunately I have used the dev app server where you simply can delete > the local_db.bin file. On the cloud server you are lost.. > I wonder if anyone else ran into this (having a list box in the admin > pages instead of a text field for the datastore would be very helpful > here) or did I miss something?
We're working on adding this, i.e. ability to query/list the available namespaces. Thanks for the feedback. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.