Querying across namespaces

55 views
Skip to first unread message

Rajesh Gupta

unread,
Mar 2, 2021, 3:24:11 AM3/2/21
to google-a...@googlegroups.com
We have a multi-tenant saas.  Namespaces are used to separate the data between tenants

Is there a way to query for data across namespaces.  
Why do I need it? I need for internal reporting and analysis and migration purposes.

--
Rajesh
Field Service Software on Google Cloud Platform and Mobile


Message has been deleted

NoCommandLine

unread,
Mar 3, 2021, 12:30:18 AM3/3/21
to Google App Engine
1. The answer seems to be 'No' i.e. no direct way. See - https://stackoverflow.com/a/27085337

2. You'll probably have to loop through all of your namespaces. To get all the namespaces in your datastore, see - https://googleapis.dev/ruby/google-cloud-datastore/latest/index.html which says

.....The special entity kind __namespace__ can be used to find all the namespaces used in your application entities....


..... NoCommandLine ......
If you miss GAE Launcher, try https://nocommandline.com
Reply all
Reply to author
Forward
0 new messages