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
command core:delete-logs-data will not delete unused rows from log_action table #11189
Comments
After trying both of these methods,
Shouldn't these be removed as part of the cleanup? |
Looking at the code It will delete them if there's still an entry for |
What does it mean manually? And if Matomo will not/cannot remove them, can I remove them with raw queries? |
Yes meant raw queries and yes you could remove them with raw queries. |
Even matomo's built-in facilities were not used to clean out old records and I started with cleaning out the records through What are my options? Should I delete them using raw queries? |
Does it not delete them when you execute it again? It's otherwise hard to say what is happening without DB access and what entries are remaining. Are there eg entries < 2014? Just a random guess. |
Subsequent runs do nothing.
Also, I ran I am confused about the feature and so far it seems unreliable.
|
When trying to manage the database size one can:
configure the user interface and configure Piwik to "Delete old visitor logs from the database". When enabled, a scheduled task will be executed at the end of
core:archive
command which will purge the old data as per the settings selected in the UI.or one can manually run a console command
core:delete-logs-data
to delete old visit dataOne may expect that both 1) and 2) do the same thing. However 2) will not purge the un-used records from the
log_action
table. In one case reported to us, this table log_action was 170G big and we expectedcore:delete-logs-data
to purge many Gb from this table.The workaround for now is to use technique 1) and configure the "delete old logs data" using the Administration > Privacy > Delete old visitor logs. Use TasksTimetable plugin to see when the task will be executed.
The text was updated successfully, but these errors were encountered: