Azure / Azure/data-api-builder

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

Aperta
#756 0 commenti 0 reazioni 1 assegnatario Assegnata a @sourabh1007 Vedi su GitHub
cosmos refactor testing
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 17h
PR unite (30g)
8

Descrizione

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](https://docs.microsoft.com/en-us/azure/cosmos-db/sql/performance-tips?tabs=trace-net-core)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.