Cross Namespace Queries?

68 views
Skip to first unread message

objectuser

unread,
Sep 13, 2011, 9:26:38 AM9/13/11
to google-a...@googlegroups.com
I'm looking into using the namespace API in my application.  I usually like leveraging platform support for things like this to remove a category of defects from my application.

But after doing some searching, it appears that the namespace support is currently rather limited.  There is only primitive support for querying across namespaces (basically, "find all namespaces").  This implies to me that any sort of cross namespace work is much more complicated and inefficient.

Am I understanding this correctly?  Does anyone have advice for working with namespaces?

Thanks.


objectuser

unread,
Sep 14, 2011, 8:51:33 AM9/14/11
to google-a...@googlegroups.com
I guess not. :)

I'm hoping that if I want to move to it in the future, I'm not hosed.  I think it might be an expensive move but a possible one.

JH

unread,
Sep 14, 2011, 10:16:40 AM9/14/11
to Google App Engine
as far as I know you cannot query across namespaces. this is not the
intended use for namespaces.

objectuser

unread,
Sep 14, 2011, 1:35:43 PM9/14/11
to google-a...@googlegroups.com
Well, I realize that almost all the time, you want your query to be within a namespace.  That's the intent: prevent data leakage across namespaces.  Good stuff there.

But sometimes, you want to query across them, like for administration, analysis, whatever.

Thanks.

andreas schmid

unread,
Sep 14, 2011, 3:30:08 PM9/14/11
to google-a...@googlegroups.com
i agree.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/VoVIZb3X-REJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

JH

unread,
Sep 14, 2011, 7:51:11 PM9/14/11
to Google App Engine
well there are metadata queries to get all namespaces, then you could
query each of them... not the best solution but the namespace api is
really cool for it's intended use.

On Sep 14, 2:30 pm, andreas schmid <a.schmi...@gmail.com> wrote:
> i agree.
>
> On Sep 14, 2011, at 7:35 PM, objectuser wrote:
>
>
>
>
>
>
>
> > Well, I realize that almost all the time, you want your query to be within a namespace.  That's the intent: prevent data leakage across namespaces.  Good stuff there.
>
> > But sometimes, you want to query across them, like for administration, analysis, whatever.
>
> > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> > To view this discussion on the web visithttps://groups.google.com/d/msg/google-appengine/-/VoVIZb3X-REJ.
Reply all
Reply to author
Forward
0 new messages