Azure / Azure/data-api-builder

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

Offen
#756 0 Kommentare 0 Reaktionen 1 zugewiesene Person Zugewiesen an @sourabh1007 Auf GitHub ansehen
cosmos refactor testing
Vorherrschende Sprache
C#
Sterne
1.5k
Forks
370
Ø Merge
3 T. 22 Std.
Gemergte PRs (30 T.)
9

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.