@mattab opened this Issue on February 26th 2014 Owner

Instead of using 12 months in year2006, year2007 etc. we should instead use the YEAR archive for this year. This would result in much faster date ranges for very long periods.

See this test: https://github.com/piwik/piwik/blob/master/tests/PHPUnit/Unit/Period/RangeTest.php#L600

See also related #3611

@mattab commented on August 23rd 2014 Owner

see also #4768

@tsteur commented on March 18th 2015 Owner

Isn't this already done see that test in the issue and https://github.com/piwik/piwik/blob/2.11.0/core/Period/Range.php#L328-L341 ?

I also did one test manually and it used a year I think.

@mattab commented on March 18th 2015 Owner

I also did one test manually and it used a year I think.

the test looks good, but to be sure could you try again and confirm 100% that it works, and close issue? thanks!

@tsteur commented on March 18th 2015 Owner

When requesting eg 2011-12-08,2015-03-18 it does use a year for 2012, 2013 and 2014.
If today is 2015-03-18 it does also use the year for 2015

This Issue was closed on March 18th 2015
Powered by GitHub Issue Mirror