Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing the CosmosAsyncContainer prior to running the test #20321

Merged
merged 2 commits into from
Apr 1, 2021
Merged

Initializing the CosmosAsyncContainer prior to running the test #20321

merged 2 commits into from
Apr 1, 2021

Conversation

amarathavale
Copy link
Contributor

The change leverages the new openConnectionsAndInitCaches() API on the CosmosAsyncContainer to reduce the latencies during initial READs caused by metadata fetching and connection establishment.

Tested the change locally, it takes about 2s to complete. We will validate this in the Daily and Staging setup (esp the Staging environment where we have a lot more partitions than my local setup)

@ghost ghost added Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Apr 1, 2021
@ghost
Copy link

ghost commented Apr 1, 2021

Thank you for your contribution amarathavale! We will review the pull request and get back to you soon.

Copy link
Member

@simplynaveen20 simplynaveen20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simplynaveen20 simplynaveen20 merged commit 5703dc2 into Azure:master Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants