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

(pkg/generateDeleteSQL) reduce redundant calculation #10312

Merged
merged 5 commits into from
Jan 6, 2024

Conversation

zhangjinpeng87
Copy link
Contributor

@zhangjinpeng87 zhangjinpeng87 commented Dec 15, 2023

What problem does this PR solve?

Issue Number: close #10311

What is changed and how it works?

Use index heuristic common columns count as a hint when pre-allocate space for slice to reduce redundant calculation, instead of calculating how many columns current primary key or unique index contains for each row.

Check List

Tests

  • Unit test

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

`None`.

@ti-chi-bot ti-chi-bot bot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 15, 2023
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 15, 2023
Signed-off-by: zhangjinpeng1987 <[email protected]>
Signed-off-by: zhangjinpeng1987 <[email protected]>
@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-mysql-test

@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 16, 2023
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 19, 2023
Copy link
Contributor

ti-chi-bot bot commented Dec 19, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-12-16 02:46:42.541423223 +0000 UTC m=+669893.578650149: ☑️ agreed by lance6716.
  • 2023-12-19 07:37:37.010236707 +0000 UTC m=+946548.047463634: ☑️ agreed by asddongmen.

Copy link
Contributor

ti-chi-bot bot commented Dec 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asddongmen, hicqu, lance6716

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [asddongmen,hicqu,lance6716]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@asddongmen
Copy link
Contributor

/retest

1 similar comment
@asddongmen
Copy link
Contributor

/retest

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-kafka-test

@zhangjinpeng87
Copy link
Contributor Author

/test dm-integration-test

@zhangjinpeng87
Copy link
Contributor Author

/test cdc-integration-mysql-test

@ti-chi-bot ti-chi-bot bot merged commit cae7e8c into pingcap:master Jan 6, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(pkg/GenDeleteSQL) duplicate calculating columns & values when generate WHERE condition
4 participants