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 memory usage of RowChangedEvent #10386

Closed
lidezhu opened this issue Dec 28, 2023 · 4 comments · Fixed by #10483
Closed

Optimize memory usage of RowChangedEvent #10386

lidezhu opened this issue Dec 28, 2023 · 4 comments · Fixed by #10483
Assignees
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement This is a enhancement PR

Comments

@lidezhu
Copy link
Collaborator

lidezhu commented Dec 28, 2023

Description

RowChangedEvent represents a row changed event and contains required data and metadata in it. But each of them copy some schema information into it(like type, name) which may cause unnecessary memory usage.
And the memory profile on some real env shows that the decoding of RowChangedEvent is the main cause of memory consumption.

Enhancement

Avoid copy schema info into RowChangedEvent.

@lidezhu
Copy link
Collaborator Author

lidezhu commented Dec 28, 2023

/label type/enhancement

Copy link
Contributor

ti-chi-bot bot commented Dec 28, 2023

@lidezhu: The label(s) type/enhancement cannot be applied. These labels are supported: duplicate, bug-from-internal-test, bug-from-user, ok-to-test, needs-ok-to-test, affects-5.4, affects-6.1, affects-6.5, affects-7.1, affects-7.5, may-affects-5.4, may-affects-6.1, may-affects-6.5, may-affects-7.1, may-affects-7.5, needs-cherry-pick-release-5.4, needs-cherry-pick-release-6.1, needs-cherry-pick-release-6.5, needs-cherry-pick-release-7.1, needs-cherry-pick-release-7.5, question, release-blocker, wontfix, MariaDB.

In response to this:

/label type/enhancement

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@lidezhu
Copy link
Collaborator Author

lidezhu commented Dec 28, 2023

/label enhancement

Copy link
Contributor

ti-chi-bot bot commented Dec 28, 2023

@lidezhu: The label(s) enhancement cannot be applied. These labels are supported: duplicate, bug-from-internal-test, bug-from-user, ok-to-test, needs-ok-to-test, affects-5.4, affects-6.1, affects-6.5, affects-7.1, affects-7.5, may-affects-5.4, may-affects-6.1, may-affects-6.5, may-affects-7.1, may-affects-7.5, needs-cherry-pick-release-5.4, needs-cherry-pick-release-6.1, needs-cherry-pick-release-6.5, needs-cherry-pick-release-7.1, needs-cherry-pick-release-7.5, question, release-blocker, wontfix, MariaDB.

In response to this:

/label enhancement

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@lidezhu lidezhu changed the title Optimize memory usage of TiCDC Optimize memory usage of RowChangedEvent Dec 28, 2023
@asddongmen asddongmen added type/enhancement This is a enhancement PR area/ticdc Issues or PRs related to TiCDC. labels Dec 29, 2023
ti-chi-bot bot pushed a commit that referenced this issue Jan 19, 2024
ti-chi-bot bot pushed a commit that referenced this issue Feb 21, 2024
3AceShowHand pushed a commit to 3AceShowHand/tiflow that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ticdc Issues or PRs related to TiCDC. type/enhancement This is a enhancement PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants