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

[Doris On ES][Optimization] Ignore _total node for efficiency and fully trusted document count #3932

Merged
merged 1 commit into from
Jun 26, 2020

Conversation

wuyunfeng
Copy link
Member

@wuyunfeng wuyunfeng commented Jun 23, 2020

Prior to this PR, Doris On ES merged another PR #3513 which misusing the total node. After Doris On ES introduce terminate_after (#2576), the total documents would not be computed, rely on this total field would be dangerous, we just rely on the actual document count by counting the inner hits node which it means to be. So we just remove all total parsing and related logic from Doris On ES, this maybe improve performance slightly because of ignoring and skipping total json node.

@wuyunfeng wuyunfeng changed the title [Doris On ES][Optimization] Ignore _total node for efficiency [Doris On ES][Optimization] Ignore _total node for efficiency and fully trusted document count Jun 23, 2020
@chaoyli chaoyli added kind/fix Categorizes issue or PR as related to a bug. kind/improvement and removed kind/fix Categorizes issue or PR as related to a bug. labels Jun 24, 2020
@morningman morningman merged commit be5fc76 into apache:master Jun 26, 2020
@wuyunfeng wuyunfeng deleted the be_optimize branch June 26, 2020 11:04
morningman pushed a commit to morningman/doris that referenced this pull request Jun 28, 2020
…#3932)

Prior to this PR, Doris On ES merged another PR apache#3513 which misusing the `total` node.  After Doris On ES introduce `terminate_after` (apache#2576), the `total` documents would not be computed, rely  on this `total` field would be dangerous, we just rely on the actual document count by counting the `inner hits` node which it means to be. So we just remove all total parsing and related logic from Doris On ES, this maybe improve performance slightly because of ignoring and skipping `total` json node.
@EmmyMiao87 EmmyMiao87 mentioned this pull request Aug 18, 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.

3 participants