Skip to content

[Enhancement](merge-on-write) use delete bitmap to mark delete for rows with delete sign when sequence column doesn't exist - #24011

Merged
zhannngchen merged 5 commits into
apache:masterfrom
bobhan1:enhance-delete-sign
Sep 12, 2023
Merged

[Enhancement](merge-on-write) use delete bitmap to mark delete for rows with delete sign when sequence column doesn't exist#24011
zhannngchen merged 5 commits into
apache:masterfrom
bobhan1:enhance-delete-sign

Conversation

@bobhan1

@bobhan1bobhan1 commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

Proposed changes

For Unique table with merge-on-write enabled, we can directly use delete bitmap to mark the rows with delete sign as deleted when sequence column doesn't exist to eliminate reading delete sign columns in later reads.
This PR can also improve the performance of #21773 if we disable insert ignore statement on mow Unique table with sequence column.

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...

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot

Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 36.99% (7891/21333)
Line Coverage: 28.94% (63239/218514)
Region Coverage: 27.89% (32894/117933)
Branch Coverage: 24.46% (16891/69064)
Coverage Report: http://coverage.selectdb-in.cc/coverage/d50bf46f3e29338fa37629af1c8406c97a4a7bac_d50bf46f3e29338fa37629af1c8406c97a4a7bac/report/index.html

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 50.92 seconds
stream load tsv: 550 seconds loaded 74807831229 Bytes, about 129 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17161921611 Bytes

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

2 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot

Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 37.00% (7893/21332)
Line Coverage: 28.95% (63262/218500)
Region Coverage: 27.91% (32913/117938)
Branch Coverage: 24.47% (16899/69070)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0d4230adb762ae8113b7c02a1dda9a86ecaca646_0d4230adb762ae8113b7c02a1dda9a86ecaca646/report/index.html

Comment threadbe/src/olap/rowset/segment_v2/segment_writer.cpp Outdated
Comment threadbe/src/olap/rowset/segment_v2/segment_writer.cpp Outdated
@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 49.24 seconds
stream load tsv: 539 seconds loaded 74807831229 Bytes, about 132 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: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17161959788 Bytes

@bobhan1
bobhan1force-pushed the enhance-delete-sign branch 2 times, most recently from e958f53 to c5c76d3CompareSeptember 7, 2023 09:43
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Comment threadbe/src/olap/tablet_meta.h
@bobhan1
bobhan1force-pushed the enhance-delete-sign branch 2 times, most recently from 78edca8 to 69159b0CompareSeptember 7, 2023 10:37
@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Sep 8, 2023
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@doris-robot

Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 36.94% (7897/21378)
Line Coverage: 28.95% (63390/218988)
Region Coverage: 27.89% (32918/118030)
Branch Coverage: 24.47% (16908/69086)
Coverage Report: http://coverage.selectdb-in.cc/coverage/296e546c5904e6df62fb7968d40d73175de25f59_296e546c5904e6df62fb7968d40d73175de25f59/report/index.html

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 50.93 seconds
stream load tsv: 532 seconds loaded 74807831229 Bytes, about 134 MB/s
stream load json: 21 seconds loaded 2358488459 Bytes, about 107 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.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162113559 Bytes

Comment threadbe/src/olap/rowset/segment_v2/segment_writer.cpp Outdated
@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Sep 8, 2023
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot

Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 36.93% (7897/21385)
Line Coverage: 28.94% (63389/219051)
Region Coverage: 27.88% (32915/118041)
Branch Coverage: 24.47% (16906/69100)
Coverage Report: http://coverage.selectdb-in.cc/coverage/7ccc496f8bb594d1e2aae533b52452e89ffd5109_7ccc496f8bb594d1e2aae533b52452e89ffd5109/report/index.html

@doris-robot

Copy link
Copy Markdown

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.1 seconds
stream load tsv: 545 seconds loaded 74807831229 Bytes, about 130 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17161909864 Bytes

@liaoxin01liaoxin01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@zhannngchenzhannngchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Sep 11, 2023
@github-actions

Copy link
Copy Markdown
Contributor

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

@zhannngchen
zhannngchen merged commit 6913d68 into apache:masterSep 12, 2023
bobhan1 added a commit to bobhan1/doris that referenced this pull request Oct 7, 2023
…for rows with delete sign when sequence column doesn't exist apache#24011"
bobhan1 added a commit to bobhan1/doris that referenced this pull request Oct 7, 2023
…for rows with delete sign when sequence column doesn't exist apache#24011"
bobhan1 added a commit to bobhan1/doris that referenced this pull request Oct 7, 2023
…for rows with delete sign when sequence column doesn't exist apache#24011"
xiaokang pushed a commit that referenced this pull request Oct 8, 2023
…n merge-on-write unique table (#25071)
* pick "[Fix](Partial update) Fix wrong position using in segment writer #22782"
* pick "[Enhancement](merge-on-write) use delete bitmap to mark delete for rows with delete sign when sequence column doesn't exist #24011"
* pick "[Fix](merge-on-write) Correct the alignment process when the existing rows with same key has marked delete sign #24877"
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-mergedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bobhan1@doris-robot@liaoxin01@zhannngchen@xiaokang