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

Forward map value extractors to HD indexes #13692

Merged
merged 2 commits into from Sep 14, 2018

Conversation

taburet
Copy link
Contributor

@taburet taburet commented Sep 5, 2018

EE part: https://github.com/hazelcast/hazelcast-enterprise/pull/2227

This change fixes two issues:

  1. The consistency issue: queryable entries returned by HD indexes were
    unaware of the map value extractors, so it was impossible to extract
    values provided by the extractors from the returned entries.

  2. The performance issue: Extractors.empty is a pretty expensive call
    and it was performed for every returned entry. According to a slightly
    modified version of HDIndexPerfTest the throughput is about 2 times
    higher now.

Fixes: https://github.com/hazelcast/hazelcast-enterprise/issues/2109

This change fixes two issues:

1. The consistency issue: queryable entries returned by HD indexes were
unaware of the map value extractors, so it was impossible to extract
values provided by the extractors from the returned entries.

2. The performance issue: Extractors.empty is a pretty expensive call
and it was performed for every returned entry. According to a slightly
modified version of HDIndexPerfTest the throughput is about 2 times
higher now.

Fixes: https://github.com/hazelcast/hazelcast-enterprise/issues/2109
Copy link
Contributor

@jerrinot jerrinot left a comment

Choose a reason for hiding this comment

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

well done!

@pveentjer
Copy link
Contributor

Great work Sergey! I'll check it as soon as I have time. You are saving the day here!

@pveentjer
Copy link
Contributor

This PRD needs to be backported to 3.10.6.

@mmedenjak
Copy link
Contributor

@pveentjer 3.10.6 or 3.10.5?

@vbekiaris vbekiaris self-requested a review September 12, 2018 15:42
@mmedenjak mmedenjak merged commit 9376de0 into hazelcast:master Sep 14, 2018
@mmedenjak
Copy link
Contributor

Two approvals, merging. Thanks for the reviews @jerrinot @vbekiaris !

@mmedenjak
Copy link
Contributor

@taburet can you backport to 3.10.x? Thanks!

@pveentjer
Copy link
Contributor

Backport is added #13775

@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants