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

Excluded common plugins non vital data. #17

Merged
merged 8 commits into from
Oct 26, 2021
Merged

Excluded common plugins non vital data. #17

merged 8 commits into from
Oct 26, 2021

Conversation

bogdanarizancu
Copy link
Contributor

@bogdanarizancu bogdanarizancu commented Oct 25, 2021

Description

  • this manages to reduce a 2.4 Gb database fro latest dump of GACO to a ~545M export file

Note

  • this should be refactored to add a filter for plugins to exclude or not
  • it is time to spread the code into classes, before it gets too convoluted

@bogdanarizancu bogdanarizancu self-assigned this Oct 25, 2021
Copy link
Member

@sun sun left a comment

Choose a reason for hiding this comment

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

A couple of remarks but looks good otherwise 👍

src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
@sun sun linked an issue Oct 25, 2021 that may be closed by this pull request
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
src/CliCommand.php Outdated Show resolved Hide resolved
"{$wpdb->prefix}actionscheduler_claims" => '1 = 0',
"{$wpdb->prefix}actionscheduler_groups" => '1 = 0',
"{$wpdb->prefix}actionscheduler_logs" => '1 = 0',
"{$wpdb->prefix}comments" => "comment_post_ID IN ({$allowedOrderIds})",
Copy link
Member

Choose a reason for hiding this comment

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

commentmeta is still missing, but later.

@sun sun merged commit 02afca2 into main Oct 26, 2021
@sun sun deleted the reduce-export-size branch October 26, 2021 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment