Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

DatastoreIO accepts single namespace. #64

Closed
chandra-vs opened this issue Oct 6, 2015 · 6 comments
Closed

DatastoreIO accepts single namespace. #64

chandra-vs opened this issue Oct 6, 2015 · 6 comments
Assignees

Comments

@chandra-vs
Copy link

I have a thousands of namespaces, how can i pass all namespace at once. Where withNamespace() can accept only one.

@chandra-vs chandra-vs changed the title DatastoreIO with single namespace. DatastoreIO accepts single namespace. Oct 6, 2015
@dhalperi dhalperi self-assigned this Oct 6, 2015
@dhalperi
Copy link
Contributor

dhalperi commented Oct 6, 2015

Can you say more about what you specifically want to do? You want to query all entities in any namespace?

@chandra-vs
Copy link
Author

I want to process the Entities from all the namespace. For example., I have an Employee entity and i would like to add a new field to the entity and value as a String for all namespaces.

@dhalperi
Copy link
Contributor

dhalperi commented Oct 9, 2015

I don't think that this is supported by the Datastore API – you cannot read from multiple namespaces at the same time. Since the main purpose of Datastore namespaces is for isolation, they discourage and disallow using multiple namespaces in the same job.

(However, I'm reaching out to them to confirm.)

@dhalperi
Copy link
Contributor

dhalperi commented Nov 2, 2015

Datastore team has confirmed, modifying entities in multiple namespaces is strongly discouraged.

However, it should be easy to programmatically generate multiple Dataflow pipelines, each of which affects only one namespace.

Please re-open if we can provide more assistance.

Thanks!

@dhalperi dhalperi closed this as completed Nov 2, 2015
@rajesh99
Copy link

rajesh99 commented Nov 5, 2015

Request to give an example on multiple dataflow pipelines.
It will be great if you can extend the WordCount datastore example to generate multiple dataflow piplelines, so that datastore entities in mulitple namespaces can be processed.

@chandra-vs
Copy link
Author

I would like to reopen. I have more than 5000 namespaces. Not sure, how to do the multiple pipelines.
Any example will be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants