-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cosmo DB Mongo Collection Order of compound index matters or not #10909
Comments
@MehaKaushik Could you please support us on this question? |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wmengmsft, @MehaKaushik, @shurd, @anfeldma-ms. |
@yupwei68 MongoDB API for CosmosDB follows the same rules as for the MongoDB. Referencing this https://docs.mongodb.com/manual/core/index-compound/. To summarize: the order will matter. |
Thanks @MehaKaushik ! |
…x` matters (#8602) Fix #8572. Confirmed from service team: Azure/azure-rest-api-specs#10909
request:
{
"parameters": {
"accountName": "ddb1",
"resourceGroupName": "rg1",
"api-version": "2020-04-01",
"subscriptionId": "subid",
"databaseName": "databaseName",
"collectionName": "collectionName",
"createUpdateMongoDBCollectionParameters": {
"location": "West US",
"tags": {},
"properties": {
"resource": {
"id": "collectionName",
"indexes": [
{
"key": {
"keys": ["testKey" ] <<- Here whether the order of the keys matters
},
"options": {
"expireAfterSeconds": 100,
"unique": true
}
}
],
...
},
"options": {}
}
}
},
The text was updated successfully, but these errors were encountered: