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

Do not pre-process segments for period=range #7635

Merged
merged 1 commit into from Apr 9, 2015
Merged

Do not pre-process segments for period=range #7635

merged 1 commit into from Apr 9, 2015

Conversation

mattab
Copy link
Member

@mattab mattab commented Apr 7, 2015

when "date to load by default" is "last 7|30 days" and we pre-process those ranges, we don't want to pre-process segments as it is simply not needed.

this can avoid thousands of extra archiving requests when Piwik server has dozens or hundreds of segments setup.

(this performance regression was introduced in #6856)

fixes #7611

when "date to load by default" is "last 7|30 days" and we pre-process those ranges, we don't want to pre-process segments as it is not needed.

this  can avoid thousands of extra archiving requests when Piwik server has dozens or hundreds of segments setup
@mattab mattab 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 7, 2015
@mattab mattab added this to the Piwik 2.13.0 milestone Apr 7, 2015
@tsteur
Copy link
Member

tsteur commented Apr 7, 2015

Is it possible to write a test for this? Would be good as the CronArchive is a huge mess :) Eg in ArchiveProcessingTest or so? Not sure!

@mattab
Copy link
Member Author

mattab commented Apr 7, 2015

it could be possible with further refactor but i'm not able to right now (sorry)

mattab pushed a commit that referenced this pull request Apr 9, 2015
Do not pre-process segments for period=range
@mattab mattab merged commit e6ce311 into master Apr 9, 2015
@mnapoli mnapoli deleted the 7611 branch April 13, 2015 00:20
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