Invalidations of reports command should allow to invalidate "All visits" only #19947
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Stability
For issues that make Matomo more stable and reliable to run for sys admins.
Milestone
Currently, when running
./console core:invalidate-report-data --sites=1 --dates=2022-10-01,2022-10-10
, then all reports for the "All visits" segment and all other segments for that site are invalidated. This can cause a huge amount of invalidations which can put a lot of load onto a database and as a result it will take very long to reprocess this data.It would be be great if we could specify something like
--segment=""
and then only the "All Visits" segment should be invalidated but not any other segments (unless specific other segments are also specified).You can reproduce this by running
./console core:invalidate-report-data --sites=1 --dates=2022-10-01,2022-10-10
and then you will see invalidations in thearchive_invalidations
table for thedone
archive name and also for all the segments. Expected would be to only see archive invalidations for thedone
archive name.The text was updated successfully, but these errors were encountered: