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

Improve all websites dashboard performance when using range date #9992

Merged
merged 1 commit into from Apr 1, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 1, 2016

fix #9662

Tested it locally with 1000 sites and reduced time to generate report from 60 seconds to about 4 seconds (with profiling enabled). Problem was it called millions of times (3 periods * 1000 sites * 1000 sites) all segments etc. as there was a bug when getting the string for the done flag.

For each of those 1000 sites we called again 1000 times getDoneString... which results in 1mio calls for each period. When user has 2000 sites it was likely 12 mio calls. Now it should call it only a few thousand times.

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Apr 1, 2016
@tsteur tsteur added this to the 2.16.1 milestone Apr 1, 2016
@mattab mattab merged commit 193d0e9 into master Apr 1, 2016
@mattab mattab deleted the archiving_tweaks branch April 1, 2016 01:00
@mattab
Copy link
Member

mattab commented Apr 1, 2016

Very good find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants