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
[BUG] myloader performance regression for MariaDB 10.6 #987
Comments
|
Hi @LinuxJedi, |
|
I'm thinking that in the future we need to keep a |
|
Right. But since this affects pretty much all MariaDB users (all should be on at least 10.6 this year) wouldn't be easier to just disable this if MariaDB is detected? There isn't a default |
|
Adding the if clause will be the simplest solution, but after implemented #566, it should be smarter to start loading /etc/mydumper.cnf. As I don't want to do things for particular vendors when we can do it from a configuration file, for instance, maintain the different locking mechanism is not easy, an we are not even close to test all that. |
Describe the bug
MariaDB 10.6 tries to accelerate loading for InnoDB tables when using
SET foreign_key_checks=0, unique_checks=0;. This is outlined in MDEV-515. Unfortunately whilst this increases single-threaded bulk insert performance this introduces table-level locks which reduce the performance of myloader.To fix this we need to not do
unique_checks=0for myloader for MariaDB 10.6+ restorations.The text was updated successfully, but these errors were encountered: