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

Optimize select with known bucket_id #252

Merged

Conversation

DifferentialOrange
Copy link
Member

@DifferentialOrange DifferentialOrange commented Dec 17, 2021

Merge after #251.

After this patch, select and pairs requests will no longer fetch
sharding key info and extract sharding key info if bucket_id specified.
Since calls with specified bucket_id already ignore sharding key
values, behavior will not change. Other crud operations already have
this optimization.

Based on test runs on HP ProBook 440 G7 i7/16Gb, performance had
increased by 6-7%.

I didn't forget about

Part of #234

@DifferentialOrange DifferentialOrange changed the title Differential orange/gh 234 optimize know bucket Optimize select with known bucket_id Dec 17, 2021
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch from ae0885c to 4e14f6a Compare December 20, 2021 09:27
@DifferentialOrange DifferentialOrange changed the base branch from master to DifferentialOrange/gh-225-vshard-performance December 20, 2021 09:57
@DifferentialOrange DifferentialOrange marked this pull request as ready for review December 20, 2021 09:58
@DifferentialOrange
Copy link
Member Author

PR is ready for review, but since it depends on #244 and #251 improvements, I will not request any reviews for now (until #244 and #251 is merged).

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-225-vshard-performance branch from 21420dd to 10733cb Compare December 20, 2021 14:42
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch from 4e14f6a to a26dbea Compare December 20, 2021 14:42
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-225-vshard-performance branch from 10733cb to 859a624 Compare December 20, 2021 14:51
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch from a26dbea to 2e36906 Compare December 20, 2021 14:51
@Totktonada
Copy link
Member

The implemented optimization looks okay, but I had idea to find more headrooms in the scope of the issue. Are you plan to do so?

@DifferentialOrange
Copy link
Member Author

The implemented optimization looks okay, but I had idea to find more headrooms in the scope of the issue. Are you plan to do so?

I thought the plan was only to solve this one and investigate code later as part of some another ticket/epic.

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-225-vshard-performance branch 2 times, most recently from efae10e to 920523e Compare February 25, 2022 12:01
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch 2 times, most recently from 949bd39 to fc2e693 Compare February 25, 2022 13:00
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

LGTM.

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-225-vshard-performance branch 2 times, most recently from fc249e9 to 3c53164 Compare March 4, 2022 12:23
Base automatically changed from DifferentialOrange/gh-225-vshard-performance to master March 4, 2022 13:47
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch from fc2e693 to 6c0f17a Compare March 4, 2022 13:48
After this patch, select and pairs requests will no longer fetch
sharding key info and extract sharding key info if bucket_id specified.
Since calls with specified bucket_id already ignore sharding key
values, behavior will not change. Other crud operations already have
this optimization.

Based on test runs on HP ProBook 440 G7 i7/16Gb, performance had
increased by 6-7%.

Part of #234
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-234-optimize-know-bucket_id branch from 6c0f17a to 7146f59 Compare March 4, 2022 13:53
@DifferentialOrange DifferentialOrange merged commit dd9fd7c into master Mar 4, 2022
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-234-optimize-know-bucket_id branch March 4, 2022 14:33
@Totktonada Totktonada mentioned this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants