IEvangelist / azure-cosmos-dotnet-repository

Wraps the .NET SDK for Azure Cosmos DB abstracting away the complexity, exposing a simple CRUD-based repository pattern
https://ievangelist.github.io/azure-cosmos-dotnet-repository
MIT License
308 stars 92 forks source link

Configurable Indexing Policy #108

Open mumby0168 opened 3 years ago

mumby0168 commented 3 years ago

When using the ContainerPerItemType setting it is possible that a consumer would want to be able to setup the container to have a indexing policy.

The library should be able to expose this configuration see this link for information on how the cosmos SDK exposes this.

https://docs.microsoft.com/en-us/azure/cosmos-db/sql/performance-tips-dotnet-sdk-v3-sql#indexing-policy

We could add this on top of our ContainerBuilder for a specific item.

dotnetspark commented 2 years ago

Is there any existing test I can look at?

mumby0168 commented 2 years ago

Is there any existing test I can look at?

Hi the best place to start is the link on the issue other than that I would look at the ContainerItemBuilder implementation and the tests for that 😃