Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-04-08 07:09:25 +0300
committermattab <matthieu.aubry@gmail.com>2016-04-08 07:09:25 +0300
commitfaae0cde27c4425991f85af45fcce20e0a715c2c (patch)
treea3154744c1346d0f843f53e06738cc881f652f80 /plugins
parentd2f83c70ed5bff6b9be7cf98a59bdc124dbe3d00 (diff)
Select 10 times more rows so that resultset after grouping is more likely to contain enough records
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Live/Model.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Live/Model.php b/plugins/Live/Model.php
index 276061e14d..3f2312234a 100644
--- a/plugins/Live/Model.php
+++ b/plugins/Live/Model.php
@@ -408,6 +408,10 @@ class Model
$orderBy .= "visit_last_action_time " . $filterSortOrder;
$orderByParent = "sub.visit_last_action_time " . $filterSortOrder;
+ if (!$segment->isEmpty()) {
+ $limit = $limit * 10;
+ }
+
$subQuery = $segment->getSelectQuery($select, $from, $where, $whereBind, $orderBy, $groupBy, $limit, $offset);
$bind = $subQuery['bind'];