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

some optimisation when using --tables-list #1456

Merged
merged 7 commits into from
May 2, 2024

Conversation

shihuafan
Copy link
Contributor

skip dump mysql.show_log .... when using mydumper --tables-list='mysql.%'

@shihuafan shihuafan changed the title skip dump mysql.slow ... some optimisation when using --tables-list Apr 1, 2024
@davidducos
Copy link
Member

Hi @shihuafan , please, request a review when you are done.

continue;
if (lock && !eval_regex(row[0], row[1]))
Copy link
Member

Choose a reason for hiding this comment

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

@shihuafan please, review my last commit about this change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

2. myloader support mysql regex
@shihuafan
Copy link
Contributor Author

@davidducos I'm done, please review
here are some modifications about tables-list parameter

  1. skip special tables when search tables, such as mysql.slow_log
  2. when lock-all-tables, use sql to determine which tables need locking
  3. when tables-list parameter exists, do not execute the
    create_job_to_dump_schema。Older versions will execute this function, but will discard all tables that are not in the tables-list.
  4. in_table_list adds schema matching for mysql like, (but this function is useless when dumping, it only works in myloader)

@davidducos davidducos merged commit d21b705 into mydumper:master May 2, 2024
35 checks passed
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.

None yet

2 participants