Skip to content

To address the slow initial query performance, it would be nice to have a warmup public method in CosmosContainer class before running the main query processors #291

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

Open
sjyang18 opened this issue Nov 15, 2019 · 0 comments
Assignees

Comments

@sjyang18
Copy link

Describe the bug
First query always shows very slow performance compared to subsequent queries.

To Reproduce
Set up Cosmos DB (sql core) with a container.
Populate 400 radom document data into the container.
Create a command line app with a query to pull top 300 records . Have multiple iteration with for loop to run this command inside the app.
Observe the first query is very slow to compare to subsequent query.

Expected behavior
There should be no noticeable performance between the first and subsequent same queries.

Actual behavior
Once the first query run with a long wait, the subsequent query does not show this slow performance.

Environment summary
SDK Version: V4 preview.1
Java JDK version: "1.8.0_222"
OS Version (e.g. Windows, Linux, MacOSX): Linux Ubuntu 18.04

Additional context
Add any other context about the problem here.

@sjyang18 sjyang18 changed the title To address the slow initial query performance, it would be nice to warmup public method in CosmosContainer before running the main query processors To address the slow initial query performance, it would be nice to warmup public method in CosmosContainer class before running the main query processors Nov 15, 2019
@sjyang18 sjyang18 changed the title To address the slow initial query performance, it would be nice to warmup public method in CosmosContainer class before running the main query processors To address the slow initial query performance, it would be nice to have a warmup public method in CosmosContainer class before running the main query processors Nov 18, 2019
@kushagraThapar kushagraThapar assigned mbhaskar and biblix and unassigned mbhaskar and biblix Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants