Skip to content

When requesting Date Range or Custom Segment, only archive the requested record #7573

@mattab

Description

@mattab

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

Metadata

Metadata

Assignees

Labels

MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.TaskIndicates an issue is neither a feature nor a bug and it's purely a "technical" change.c: PerformanceFor when we could improve the performance / speed of Matomo.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions