Make Date Range use the optimal number of periods by substracting periods #7574
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
An idea to make Date Range faster could be to sometimes to substract days from a longer date range.
Eg if today is
2015-03-19
and one fetches2014-12-20,yesterday
(yesterday will be very often the case) we could fetch the year of2015
and substract the2015-03-19
archive. Same if we have 10 months. Instead of fetching 10 monthly archives, we could fetch 1 yearly archive and substract 2 monthly archives.This will be quite hard to implement.
Follows up #4768
The text was updated successfully, but these errors were encountered: