Closed ealsur closed 1 week ago
Any updates on that? Just stumbled upon the same issue. In our project we create containers dynamically and recently we got a need for a composite index to be able to order by multiple columns. But turned out it is not possible with nodejs sdk.
Hi @0Dmitry Thanks for reaching out, we still have not started and we will prioritise this and keep you posted.
@ealsur Could you assist with PR's(dot-net/java) for the feature described? I've reviewed the documentation and identified potential impacts on various query types beyond adding the 'compositeIndexes' field. Can you provide guidance on necessary actions?
@topshot99 I don't have any PR links as this is not a new feature.
It all starts with the IndexingPolicy:
Which leads to the CompositePath: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/9f8d84860d3170d8a95b278a51ac2792a927a1ab/Microsoft.Azure.Cosmos/src/Resource/Settings/CompositePath.cs
Hi @ealsur, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.
Describe the bug Cosmos DB supports Composite Indexes on Indexing Policy (https://docs.microsoft.com/en-us/azure/cosmos-db/index-policy#composite-indexes) which is supported by all the other Cosmos DB SDKs (.NET, Java, Python, Go).
The NodeJS Cosmos SDK does not support adding Composite Indexes, the Indexing Policy has no such property.
The only way to do it is by doing something like:
To Reproduce Attempt to set the Composite Indexes on an Indexing Policy.
Expected behavior The Indexing Policy has Composite Indexes. Additional context Add any other context about the problem here.