@quba opened this Issue on June 15th 2016 Contributor

When specifying the --force-idsegments parameter, Piwik archives the day period for "all visits" and then for the specified list of segments. When archiving the week (and others) period, Piwik skips standard "all visits" archiving and archives only the specified list of segments.

It's not needed to perform the standard archiving while forcing segments to be archived.

In addition, it also seems to not work fully with the --concurrent-requests-per-website. For the day period, it starts with "all visits" and then proceeds with segments. For other periods, it starts immediately with "all visits" and first X segments.

@tsteur commented on June 17th 2016 Owner

I think the first one is a feature request to not archive the regular one when force-idsegments is given while the concurrent-requests-per-website sound more like a bug.

@mattab commented on July 8th 2016 Owner

It's not needed to perform the standard archiving while forcing segments to be archived.

I think it's needed at the moment to process the archive without segment, so that Piwik knows that there is data for the day and actually trigger the archiving. If there is no data for the day for 'all visits' then Piwik knows there is no data for segment neither, which improves performance significantly when it was implemented.

In addition, it also seems to not work fully with the --concurrent-requests-per-website.

different issue, please let's keep one issue per ticket :+1:

@quba commented on July 8th 2016 Contributor

#10281 created.

I think it's needed at the moment to process the archive without segment, so that Piwik knows that there is data for the day and actually trigger the archiving. If there is no data for the day for 'all visits' then Piwik knows there is no data for segment neither, which improves performance significantly when it was implemented.

Such check should be done for both "all visits" and segmented data. Then daily archiving for "all visits" could be skipped when forcing a specific segment. This would also speed up archiving when a heavy segment which returns no data is defined.

Powered by GitHub Issue Mirror