Skip to content

[opt](stats) Use single connect context for each olap analyze task - #22773

Merged
starocean999 merged 1 commit into
apache:masterfrom
Kikyou1997:fix/update_stats
Aug 10, 2023
Merged

[opt](stats) Use single connect context for each olap analyze task#22773
starocean999 merged 1 commit into
apache:masterfrom
Kikyou1997:fix/update_stats

Conversation

@Kikyou1997

Copy link
Copy Markdown
Contributor
  1. Add some comment for codes of AnalysisManager
  2. Fix potential NPE caused by deleting a running analyze job
  3. Use single connect context for each olap analyze task

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@Kikyou1997

Copy link
Copy Markdown
ContributorAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 44.63 seconds
stream load tsv: 509 seconds loaded 74807831229 Bytes, about 140 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size: 17162153493 Bytes

2. Fix potential NPE caused by deleting a running analyze job
3. Use single connect context for each olap analyze task
@Kikyou1997

Copy link
Copy Markdown
ContributorAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 44.94 seconds
stream load tsv: 511 seconds loaded 74807831229 Bytes, about 139 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select: 29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size: 17162095343 Bytes

@morrySnowmorrySnow changed the title [improvement](nereids) Use single connect context for each olap analyze task[improvement](stats) Use single connect context for each olap analyze taskAug 10, 2023
@morrySnowmorrySnow changed the title [improvement](stats) Use single connect context for each olap analyze task[opt](stats) Use single connect context for each olap analyze taskAug 10, 2023
@morrySnowmorrySnow changed the title [opt](stats) Use single connect context for each olap analyze task[opt](stats) Use single connect context for each olap analyze taskAug 10, 2023
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actionsgithub-actionsBot added approved Indicates a PR has been approved by one committer. reviewed labels Aug 10, 2023
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@starocean999
starocean999 merged commit ec0ceda into apache:masterAug 10, 2023
morningman pushed a commit that referenced this pull request Oct 13, 2023
…anch 2.0 (#25119)
This PR is composed of belowing commits which has been merged to Doirs master:
* #24769
* #24672
* #24599
* #24521
* #24405
* #24237
* #24135
* #24074
* #24026
* #23992
* #23978
* #23622
* #23507
* #23354
* #23103
* #22963
* #22896
* #22775
* #22773
morningman pushed a commit that referenced this pull request Oct 15, 2023
….0 (#25421)
This PR is composed of belowing commits which has been merged to Doirs master:
* #24769
* #24672
* #24599
* #24521
* #24405
* #24237
* #24135
* #24074
* #24026
* #23992
* #23978
* #23622
* #23507
* #23354
* #23103
* #22963
* #22896
* #22775
* #22773
After this PR, when user upgrade Doris from 2.0.2 to 2.0.3, the origin info in AnalysisManager will be ignored, and the new module AnalysisManagerV2 will be saved(with more info).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/2.0.3-mergedmerge_conflictreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Kikyou1997@hello-stephen@starocean999@morrySnow@xiaokang