Azure / azure-cosmos-python

🚨🚨🚨This SDK is now maintained at https://github.com/Azure/azure-sdk-for-python 🚨🚨🚨
https://github.com/Azure/azure-sdk-for-python
MIT License
150 stars 141 forks source link

How to send a query or stored procedure execution to a specific region/location ? #176

Closed vchalmel closed 4 years ago

vchalmel commented 5 years ago

Once a connection is defined with several PreferredLocations defined in the connectionPolicy, is it possible to micro-manage query and storedprocedures posts to parallelize calls to each locations/regions ?

There is no examples including anything regions related, and as for now the doc is still empty well...

southpolesteve commented 4 years ago

This is not possible with a single client. You'll need a create a client for each region by setting preferred locations to a single value and then deciding which client to use in application code.