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
New command 'database:optimize-archive-tables' to optimize archive tables (even if on InnoDB). #8633
Conversation
@tsteur Can you give this a quick review (or your thoughts if you don't think it should be merged)? |
|
||
protected function configure() | ||
{ | ||
$this->setName('core:optimize-archive-tables'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if there's a different namespace that we could use instead of core
? In the past we used too often core
which doesn't say a lot. Many of them we already moved out of core
. Not sure what to use here though. Maybe database
? This would also make the context of tables
clearer. Not everyone seeing this command will know what we mean by archive-tables
so it's at least clearer that we're talking about a database. There might be better namespaces though, or core
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll rename to database
Added some notes but up to you. Feel free to merge |
…imize-archive-tables.
1b8dfee
to
2541271
Compare
Add command to optimize archive tables (even if on InnoDB) since archive tables can get bloated even when purging functions normally.
I added a quick command to make it easier to maintain or automate maintenance of Piwik. The command forces an optimization of one or more archive tables. I've noticed while supporting some users that even when using InnoDB, it can be necessary to rebuild archive tables. I also noticed, running the queries manually can be tedious and undesired (from the user's perspective), so I created this (small) command.