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

Use 8x faster mysqldump fork #702

Merged
merged 7 commits into from
Mar 5, 2024
Merged

Use 8x faster mysqldump fork #702

merged 7 commits into from
Mar 5, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 3, 2024

the latest druidfi/mysqldump-php release - which is a PSR4 refactored, and regular maintained variant of https://github.com/ifsnop/mysqldump-php - is 8-10x faster then the origin upstream

@@ -37,7 +37,7 @@
"symfony/process": ">=3.4.47 <7.0",
"symfony/filesystem": ">=3.4.47 <7.0",
"vlucas/phpdotenv": "^4.3",
"ifsnop/mysqldump-php": "^2.12"
"druidfi/mysqldump-php": "^1.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this dependency is requiring PHP 7.4+

is it fine to raise the min php version?

Copy link
Owner

Choose a reason for hiding this comment

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

Version 3.5 must be compatible with PHP 7.1 to 7.4, for this reason, the dependency cannot be changed.
It's fine to update master with the new solution, but 3.5 will have to keep the existing one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for pushing it over the finishing line

@lucatume lucatume marked this pull request as ready for review March 4, 2024 08:30
return parent::start($filename);
}
};
$dumpSettings = ['add-drop-table'=> true, 'add-drop-database' => true];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

will the composer-35.json file use the same source code? if so, this line here might need a if-class-exist or similar construct so it works with both Mysqldump implementations?

Copy link
Owner

Choose a reason for hiding this comment

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

Yes, v3.5 is transpiled from v4 and will use the same code.
I've chased a missing db version update issue that was failing the tests, when that is solved, I will test v3.5 for issues, and will, likely put in place the conditional code.

@lucatume lucatume merged commit ce5d983 into lucatume:master Mar 5, 2024
43 checks passed
@staabm staabm deleted the fast-dump branch March 5, 2024 08:37
lucatume added a commit that referenced this pull request Mar 5, 2024
lucatume added a commit that referenced this pull request Mar 5, 2024
@lucatume lucatume mentioned this pull request Mar 5, 2024
@lucatume
Copy link
Owner

lucatume commented Mar 5, 2024

Thank you @staabm again for your PR.
I've fixed the remaining issues and merged it.

@staabm
Copy link
Contributor Author

staabm commented Mar 5, 2024

thank you for the fast feedback :-). the contributions was a joy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants