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

[Bug] DBStats: cacheDataByArchiveNameReports could take hours to complete #22576

Open
4 tasks done
mikkeschiren opened this issue Sep 11, 2024 · 0 comments
Open
4 tasks done
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member

Comments

@mikkeschiren
Copy link
Contributor

What happened?

When running scheduled tasks cacheDataByArchiveNameReports could take hours to complete on a big database:

INFO      [2024-09-10 19:22:14] 260  Scheduler: executing task Piwik\Plugins\DBStats\Tasks.cacheDataByArchiveNameReports...
INFO      [2024-09-11 00:58:40] 260  Scheduler: finished. Time elapsed: 20185.759s
INFO      [2024-09-11 00:58:40] 260  Scheduler: executing task Piwik\Plugins\QueuedTracking\Tasks.optimizeQueueTable...
INFO      [2024-09-11 00:58:40] 260  Scheduler: finished. Time elapsed: 0.002s
INFO      [2024-09-11 00:58:40] 260  Scheduler: executing task Piwik\Plugins\QueuedTracking\Tasks.notifyQueueSize...
INFO      [2024-09-11 00:58:40] 260  Scheduler: finished. Time elapsed: 0.000s

What should happen?

The task should go much quicker. How could we optimise it?

How can this be reproduced?

Can be reproduced on a big Matomo instance

Matomo version

5.1.1

PHP version

8.1

Server operating system

Linux

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@mikkeschiren mikkeschiren added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Sep 11, 2024
@mikkeschiren mikkeschiren changed the title [Bug] DBstats: cacheDataByArchiveNameReports could take hours to complete [Bug] DBStats: cacheDataByArchiveNameReports could take hours to complete Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member
Projects
None yet
Development

No branches or pull requests

1 participant