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

New command 'database:optimize-archive-tables' to optimize archive tables (even if on InnoDB). #8633

Merged
merged 4 commits into from Sep 3, 2015

Conversation

diosmosis
Copy link
Member

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.

@diosmosis diosmosis added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Aug 24, 2015
@diosmosis diosmosis added this to the 2.15.0 milestone Aug 24, 2015
@diosmosis
Copy link
Member Author

@tsteur Can you give this a quick review (or your thoughts if you don't think it should be merged)?

@diosmosis diosmosis added the Needs Review PRs that need a code review label Aug 31, 2015

protected function configure()
{
$this->setName('core:optimize-archive-tables');
Copy link
Member

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...

Copy link
Member Author

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

@tsteur
Copy link
Member

tsteur commented Sep 1, 2015

Added some notes but up to you. Feel free to merge

diosmosis added a commit that referenced this pull request Sep 3, 2015
Add command to optimize archive tables (even if on InnoDB) since archive tables can get bloated even when purging functions normally.
@diosmosis diosmosis merged commit c63ac67 into master Sep 3, 2015
@diosmosis diosmosis deleted the force_optimize_cmd branch September 3, 2015 02:52
@mattab mattab changed the title Add command to optimize archive tables (even if on InnoDB). New command 'database:optimize-archive-tables' to optimize archive tables (even if on InnoDB). Oct 13, 2015
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants