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

Read many optimization #31723

Merged
merged 49 commits into from
Dec 8, 2022
Merged

Read many optimization #31723

merged 49 commits into from
Dec 8, 2022

Conversation

jeet1995
Copy link
Member

@jeet1995 jeet1995 commented Oct 25, 2022

Description

This PR optimizes readMany to make use of point reads when only a single item is requested from a physical partition.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Benchmarking

Averages

P99 (main) P99 (optimization) P99.9 (main) P99.9 (optimization) Throughput - mean rate (main) Throughput - mean rate (optimization) Tuple Size No. of documents
4.83 ms 4.77 ms 7.79 ms 7.73 ms 1738.92 events/s 2104.25 events/s 1 1000
8.97 ms 6.99 ms 13.42 ms 11.17 ms 1114.26 events/s 1490.02 events/s 5 1000

@jeet1995
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

…anyOptimization

� Conflicts:
�	sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/CosmosItemTest.java
…anyOptimization

� Conflicts:
�	sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java
@jeet1995
Copy link
Member Author

jeet1995 commented Dec 1, 2022

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

Great work @jeet1995, good tests, thanks!
Minor suggestions / questions.

@jeet1995
Copy link
Member Author

jeet1995 commented Dec 8, 2022

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995
Copy link
Member Author

jeet1995 commented Dec 8, 2022

/check-enforcer override

@jeet1995
Copy link
Member Author

jeet1995 commented Dec 8, 2022

/check-enforcer override

@jeet1995 jeet1995 merged commit d836145 into Azure:main Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants