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

st-archiver-purge.sql #1

Open
gordan-bobic opened this issue Jul 5, 2024 · 1 comment
Open

st-archiver-purge.sql #1

gordan-bobic opened this issue Jul 5, 2024 · 1 comment
Assignees

Comments

@gordan-bobic
Copy link
Contributor

gordan-bobic commented Jul 5, 2024

Implement functionality of pt-archiver --purge - in pure SQL as a stored procedure.
Initially, we will need only the following parameters, as they exist in pt-archiver:

--database
--source
--dest (initially only NULL until archiving part is implemented)
--where
--sleep
--commit-each
--txn-size

Should be implemented by using a single once-prepared statement, executed multiple times with EXECUTE ... USING ... for optimal performance.

This should make it significantly faster in some cases than pt-archiver, because it will evade the communication overhead between pt-archiver and the database.

@gordan-bobic gordan-bobic added enhancement New feature or request and removed enhancement New feature or request labels Jul 5, 2024
@gordan-bobic gordan-bobic transferred this issue from another repository Aug 2, 2024
@gordan-bobic gordan-bobic transferred this issue from shatteredsilicon/ssm-submodules Aug 2, 2024
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