Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Lower the statistics grouping to 15 minutes maximum, as our test with…

… 20'000 recipients show that it's enough
  • Loading branch information...
commit 425f5582713de912535d8434d9f78801a75ece87 1 parent a791c48
@PowerKiKi PowerKiKi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/Domain/Repository/NewsletterRepository.php
View
4 Classes/Domain/Repository/NewsletterRepository.php
@@ -139,10 +139,10 @@ public function getStatistics(Tx_Newsletter_Domain_Model_Newsletter $newsletter)
'linkOpenedPercentage' => 0,
);
- // Find out what the best grouping step is according to number of events
+ // Find out what the best grouping step is according to number of states
$stateCount = count($stateDifferences);
if ($stateCount > 5000)
- $groupingTimestep = 60 * 60; // 1 hour
+ $groupingTimestep = 15 * 60; // 15 minutes
elseif ($stateCount > 500)
$groupingTimestep = 5 * 60; // 5 minutes
elseif ($stateCount > 50)
Please sign in to comment.
Something went wrong with that request. Please try again.