Moved from GitHub pydgraph/113
Posted by sausageRoll:
If I create client with several alphas:
self.client = pydgraph.DgraphClient(self.client_stub1, self.client_stub2, self.client_stub3)
Should I have possibility to execute schema creation for all nodes instead of one?
op = pydgraph.Operation(schema=self.query.get_query_by_name('schema.txt')) self.client1.alter(op) .... return self.any_client().alter(operation, timeout=timeout, metadata=new_metadata, credentials=credentials)
Instead we’re getting one random client and only one alpha will have appropriate schema, then requests to other alphas will fail.