You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Microsoft.Azure.Cosmos v3.27.0 to initialize cosmosdb the only way is now to call CosmosClient.CreateAndInitializeAsync();
With CosmosSDK 2.0 it was possible to call OpenAsync to avoid startup latency on first request Ex:
But this method have been removed and it's no possible anymore to Initialize CosmosDB client after it have been created.
The problem we are having with Entity Framework Core is that Entity Framework is creating the CosmosClient instance at
File a bug
In Microsoft.Azure.Cosmos v3.27.0 to initialize cosmosdb the only way is now to call CosmosClient.CreateAndInitializeAsync();
With CosmosSDK 2.0 it was possible to call OpenAsync to avoid startup latency on first request Ex:
But this method have been removed and it's no possible anymore to Initialize CosmosDB client after it have been created.
The problem we are having with Entity Framework Core is that Entity Framework is creating the CosmosClient instance at
efcore/src/EFCore.Cosmos/Storage/Internal/SingletonCosmosClientWrapper.cs
Line 103 in 70cd929
And is not calling CreateAndInitializeAsync()
This is causing first request to take 2 seconds instead of 20 ms
The text was updated successfully, but these errors were encountered: