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 INI setting delete_logs_unused_actions_max_rows_per_query useful for speeding up deletion process for very large sites #15492

Merged
merged 6 commits into from Feb 4, 2020

Conversation

toredash
Copy link
Contributor

Intended to be used to improve performance for large sites, similar to delete_logs_max_rows_per_query and archiving_ranking_query_row_limit

Intended to be used to improve performance for large sites, similar to delete_logs_max_rows_per_query and archiving_ranking_query_row_limit
config/global.ini.php Outdated Show resolved Hide resolved
config/global.ini.php Outdated Show resolved Hide resolved
$settings['delete_reports_keep_range_reports'] = (int) $keepRange;
$settings['delete_reports_keep_segment_reports'] = (int) $keepSegments;
$settings['delete_logs_max_rows_per_query'] = PiwikConfig::getInstance()->Deletelogs['delete_logs_max_rows_per_query'];
$settings['delete_logs_unused_actions_max_rows_per_query'] = PiwikConfig::getInstance()->Deletelogs['delete_logs_unused_actions_max_rows_per_query'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK it shouldn't be needed to add this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove it then :) thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we have the new setting present in Controller.php, I assume we need it here as well.

@toredash toredash requested a review from tsteur January 31, 2020 13:04
@toredash
Copy link
Contributor Author

closes #15484

@toredash toredash requested a review from tsteur February 3, 2020 08:17
Copy link
Contributor Author

@toredash toredash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe everything you have pointed out is resolved, @tsteur

$settings['delete_reports_keep_range_reports'] = (int) $keepRange;
$settings['delete_reports_keep_segment_reports'] = (int) $keepSegments;
$settings['delete_logs_max_rows_per_query'] = PiwikConfig::getInstance()->Deletelogs['delete_logs_max_rows_per_query'];
$settings['delete_logs_unused_actions_max_rows_per_query'] = PiwikConfig::getInstance()->Deletelogs['delete_logs_unused_actions_max_rows_per_query'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we have the new setting present in Controller.php, I assume we need it here as well.

@tsteur
Copy link
Member

tsteur commented Feb 4, 2020

Thanks @toredash very appreciated

@tsteur tsteur merged commit c71f6e2 into matomo-org:4.x-dev Feb 4, 2020
@mattab mattab added this to the 4.0.0 milestone Feb 10, 2020
@mattab mattab changed the title fix: enable user-defined value for insertIntoTempIterationStep New INI setting delete_logs_unused_actions_max_rows_per_query useful for speeding up deletion process for very large sites Feb 10, 2020
@mattab mattab added the c: Performance For when we could improve the performance / speed of Matomo. label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants