-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
The goal of this issue is to make archiving faster for Date Range requests and Custom Segments requests. This follows up: #4768
Currently when a date range API query is issued, it will pre-process all reports for the given plugin being requested. For example when requesting the "Page URLs" report for a custom date range or segment, it will pre-process all Actions plugin reports including Page URLs, Page titles, Downloads, Outlinks.
In this issue we would like to improve the algorithm so that only the requested report (ie. a Blob Record) is archived.
When requesting for example the Page URL report, then it should only archive the page URL report in the actions plugin but no other reports within the same plugin. An exception to this is when a DB query is being used to query the data for multiple reports at once (we do this eg in Actions). Then we would also still archive all reports coming from that specific DB query. We wouldn't split up the DB queries into different queries.
If a report for goal ID =5 is being requested, then it should only archive this specific report for this specific goal but no other goal reports and no other reports for the same goal.
Similarly this should also work for other plugins like custom reports etc.
This may need to be done at the same time as #7470