Elfocrash / Cosmonaut

🌐 A supercharged Azure CosmosDB .NET SDK with ORM support
https://cosmonaut.readthedocs.io
MIT License
341 stars 44 forks source link

Single collection for multiple entities #36

Closed sushsssskkk closed 6 years ago

sushsssskkk commented 6 years ago

Can we share a collection between multiple entities? The RUs are causing big spike in cost as I have quite de-normalized data structure, can different entities point to single collection and same can work seamlessly for CRUD?

Elfocrash commented 6 years ago

Hello @sushant-cyclotron

Cosmonaut has support for Collection sharing.

There is documentation for it here: https://github.com/Elfocrash/Cosmonaut#collection-sharing A video about it (even though slightly outdated) here: https://chapsas.com/video-how-to-save-money-in-cosmosdb-with-cosmonauts-collection-sharing/ Sample code in the project.

Elfocrash commented 6 years ago

Closing this due to inactivity. Feel free to open it again if you wanna amend anything