I am saving documents to a CosmosDB and both the below works, Can someone please explain what the difference is? I see no performance difference and really cannot see any difference at all when running the code.
Is one going to be faster than the other when the number of documents increases?
docClient.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(databaseName, databaseCollection), JObject.Parse(singleItem))
.GetAwaiter().GetResult();
await docClient.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(databaseName, databaseCollection), JObject.Parse(singleItem));