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

Parallelized truncates #116

Open
florrain opened this issue Nov 21, 2024 · 0 comments
Open

Parallelized truncates #116

florrain opened this issue Nov 21, 2024 · 0 comments

Comments

@florrain
Copy link

Hello,

I am working in an application that has a pretty large data model that is initially cleaned up with as of today 141 tables being truncated. Each TRUNCATE taking between 10ms and 20ms. That's almost 3 seconds of waiting for my database to be empty.

  • Before I start any work, are there any concerns against parallelizing those truncate statements using threads for example?
  • Would you be interested by a PR?

Ideas:

  • opt-in setting, parallelization would be turned off by default
  • I am most familiar with MySQL, but I don't see how running parallel truncates on different tables would be a concern
  • The threading would be positioned here, common for all adapters

Thanks,

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

1 participant