Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 452 Bytes

File metadata and controls

19 lines (12 loc) · 452 Bytes

Cosmos DB point reads vs query by partition key RUs consumption for large documents (~100KB)

Setup

Create a CosmosDB container with id as partition key.

  1. Set the connection string:

    dotnet user-secrets set ConnectionStrings:CosmosDb "AccountEndpoint=foo;AccountKey=bar;"
  2. Configure appsettings.json or set the environment variables CosmosDb:DatabaseId and CosmosDb:ContainerId

Run

dotnet run