OrleansContrib / Orleans.CosmosDB

Orleans providers for Azure Cosmos DB
MIT License
40 stars 30 forks source link

Psp 4379 custom partition key #25

Closed Ulriksen closed 5 years ago

Ulriksen commented 5 years ago

Grain type as partition key results in 10GB cap pr. grainType.

Todo list before merge

New path for partition key ✔ Use new key path if old partition key path does not exist ✔ Create collections with new key path ✔ Func in options to build partition key for grain type. ✔ Use delegate to build partition key ✔ Use graintype as default partition key if not set✔ Write to correct partition key ✔ Read from correct partition key ✔ Documentation Verify stored proc where clauses Tests Indexing - stored proc cannot query cross partition. Store indexes in separate partition using graintype+ "index" as name. Update index from DirectStorageManagedIndexImpl or from Cosmos provider.