@lhwong :

I believe it is not possible to do a single query "across all tenants", if
that is what you were looking for.

If you do not already have the names of your customers' namespaces (in your
own meta-data tables), then you can use Ikai's link to get those names and
make a count query once for each namespace.

Also note that the meta-data queries can be a bit
costly<http://code.google.com/appengine/docs/java/datastore/metadataqueries.html#Quota_Usage>.
So, if you are not already storing namespaces, you might want to start doing
that.

Regards,
R.Rajkumar

On Sat, Dec 11, 2010 at 4:47 AM, Ikai Lan (Google)
<[email protected]<ikai.l%[email protected]>
> wrote:

> It seems like what you want are metadata queries to get the names of
> namespaces:
>
> http://code.google.com/appengine/docs/java/datastore/metadataqueries.html
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Thu, Dec 9, 2010 at 9:08 PM, Nick <[email protected]> wrote:
>
>> Hi,
>>
>> I have a multitenancy application with tenants creating their own contents
>> and store them in datastore using different namespaces. I'd like to analyze
>> data across tenants, for example total number of contents created. Can this
>> be done? If yes, what is the namespace to be used to access the data across
>> all tenants?
>>
>> Thanks,
>> --Wong Liong Hung
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-appengine%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://crm.ifreetools.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to