News for hackers. Stuff that matters.
Re:Azure Cosmos DB: Microsoft's Cloud-Born Globally Distribu... by tasubotadas on Monday April 15, 2019 @01:24PM (#19667000)
Hello,

I am aware that one can provision per database, but as another poster mentioned, you can't change that once a database is created, and also you need to specify something that's called partition keys and that can't be done using MongoDB driver. If I recall correctly, you don't even have examples available for that in CosmosDB Python API.

I mean yeah - it's possible. But it is also a pain in the ass.

Re:Azure Cosmos DB: Microsoft's Cloud-Born Globally Distribu... by rnehme on Tuesday April 16, 2019 @02:22AM (#19671536)
Hi, I am from Cosmos DB engineering team.

Yes, for shared throughput database, you will need to create a new database.

- You can create MongoDB API collections with shard keys defined. It is fully supported by MongoDB driver

- Support MongoDB collections without shard key specified is coming in May

Thank you for the feedback on the docs and the missing code samples. We will add those in the docs.

Thanks!

Re:Azure Cosmos DB: Microsoft's Cloud-Born Globally Distribu... by tasubotadas on Tuesday April 16, 2019 @04:18AM (#19671992)
Thanks. I wasn't aware that a shard key is mapped to a partition key.