data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

Create and reuse a single instance of CosmosClient in Cosmos integration tests

Open severussundar opened this issue 2 years ago • 0 comments

At the moment, the Cosmos integration tests create a new instance of the CosmosClient for performing operations (such as creating collection, inserting items, etc.) on the cosmos DB. The documentation recommends creating a single instance for the lifetime of the application. Refactoring the tests to create a single instance and re-use that could be an enhancement to the existing cosmos integration tests.

Documentation Link: Azure Cosmos DB Performance Docs

severussundar avatar Aug 29 '22 12:08 severussundar