Commit f3d0b62 Richard Bennett
committed
1 parent 81ab49c commit f3d0b62 Copy full SHA for f3d0b62
File tree 1 file changed +2
-1
lines changed
src/Orleans.Reminders.CosmosDB
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ namespace Orleans.Reminders.CosmosDB
18
18
{
19
19
internal class CosmosDBReminderTable : IReminderTable
20
20
{
21
+ private const string PARTITION_KEY = "/GrainId" ;
21
22
private const string READ_RANGE_ROW_SPROC = "ReadRangeRows" ;
22
23
private const string READ_ROW_SPROC = "ReadRow" ;
23
24
private const string READ_ROWS_SPROC = "ReadRows" ;
@@ -278,7 +279,7 @@ private async Task TryCreateCosmosDBResources()
278
279
{
279
280
Id = this . _options . Collection
280
281
} ;
281
-
282
+ remindersCollection . PartitionKey . Paths . Add ( PARTITION_KEY ) ;
282
283
remindersCollection . IndexingPolicy . IndexingMode = IndexingMode . Consistent ;
283
284
remindersCollection . IndexingPolicy . IncludedPaths . Add ( new IncludedPath { Path = "/*" } ) ;
284
285
remindersCollection . IndexingPolicy . ExcludedPaths . Add ( new ExcludedPath { Path = "/StartAt/*" } ) ;
You can’t perform that action at this time.
0 commit comments