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

Can you add support for restoring multiple tables at the same time? #62

Open
xintiandi opened this issue Aug 20, 2020 · 2 comments
Open

Comments

@xintiandi
Copy link

Can you add multiple threads to restore at the same time? A few days ago, I backed up a database with many tables. The database was backed up for 7 minutes and the backup file size was 2.4G, but the entire database was restored for 90 minutes. I watched the entire restoration process, one at a time. Table, can it be added to support restoring multiple tables at the same time?

@adriancs2
Copy link
Member

Multiple threads for the restoration of database might not be the good idea. Import mechanism at MySQL is writing data into the storage drive. Storage drive works best with 1 task at the time. Multiple writing queue will not accelerate but slow down the whole process.

I will try to do some research on this issue at my next available time and see whether the code can be optimized to run even faster for the import process.

@xintiandi
Copy link
Author

Multiple threads for the restoration of database might not be the good idea. Import mechanism at MySQL is writing data into the storage drive. Storage drive works best with 1 task at the time. Multiple writing queue will not accelerate but slow down the whole process.

I will try to do some research on this issue at my next available time and see whether the code can be optimized to run even faster for the import process.

Thank you very much, and look forward to solving the problem of slow restoration of large databases.

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

No branches or pull requests

2 participants